/* =========================================
   Routes Registration Page – register.css
   Colors: RS Red #E82C2A | Disco #6C1459
   Mine Shaft #222222 | Satin Linen #ECEDDE
   Spring Wood #F7F8F2 | Silver #CCCCCC
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #222222;
    margin: 0;
    background: #fff;
}

/* ---- Event Header ---- */
.event-header {
    background: #fff;
    box-shadow: 0 0 10px 0 rgba(153,153,153,1);
    padding: 25px 0;
}

.event-header-inner {
    max-width: 970px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-header-logo img {
    height: 45px;
    width: auto;
}

.event-header-details {
    text-align: right;
}

.event-header-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 29.7px;
    letter-spacing: -0.01em;
    color: #222222;
    margin: 0;
}

.event-header-location {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #222222;
    margin: 0;
}

/* ---- Hero Banner ---- */
.hero-banner {
    background-color: #E82C2A;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-banner-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 926px;
    height: 100%;
    object-fit: cover;
}

.hero-slider-foto {
    position: absolute;
    left: calc(50% - 127px);
    top: 0;
    width: 679px;
    height: 420px;
    object-fit: cover;
    pointer-events: none;
}

.hero-banner-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 970px;
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
}

.hero-slide-details {
    width: 376px;
    padding: 59px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.hero-slide-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.hero-slide-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 25px;
    color: #fff;
    margin: 0;
}

.hero-date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 24px;
    font-weight: 700;
    line-height: 33px;
    color: #fff;
    align-self: flex-start;
}

/* ---- Main Content ---- */
.main-content {
    padding: 60px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-width {
    width: 940px;
    max-width: 100%;
    padding: 0 15px;
}

/* ---- Intro ---- */
.intro-section {
    margin-bottom: 40px;
}

.intro-header {
    font-size: 20px;
    font-weight: 300;
    line-height: 27px;
    color: #222222;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #222222;
    margin: 0;
}

/* ---- Registration Form ---- */
.registration-form-wrapper {
    background: #fff;
    border: 1px solid #CCCCCC;
    box-shadow: 0 0 6px -5px rgba(0,0,0,.2);
    border-radius: 8px;
    padding: 20px 140px 20px 20px;
    margin-bottom: 20px;
}

.form-fieldset-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #222222;
    margin-bottom: 15px;
}

.form-row-2 {
    display: flex;
    gap: 15px;
}

.form-row-2 > * {
    flex: 1;
}

.form-item label {
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    color: #222222;
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
}

.required-marker {
    color: #CC0000;
    font-weight: 700;
}

.form-item input,
.form-item select {
    width: 100%;
    padding: 7.5px 30px 7.5px 15px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    box-shadow: 0 0 3px 0 rgba(255,255,255,1);
    font-size: 15px;
    line-height: 22.5px;
    color: #222222;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    height: auto;
    box-sizing: border-box;
}

.form-item input:focus,
.form-item select:focus {
    border-color: #4F86BA;
    box-shadow: 0 0 0 2px rgba(79,134,186,.2);
}

.form-item input.is-invalid,
.form-item select.is-invalid {
    border-color: #E82C2A;
}

.form-item .text-danger {
    font-size: 13px;
    color: #E82C2A;
    margin-top: 3px;
    display: block;
}

.fieldset-privacy {
    padding-top: 10px;
    border-top: 1px solid #CCCCCC;
    margin-top: 15px;
}

.privacy-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 22.5px;
    color: #222222;
}

.privacy-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #6C1459;
    cursor: pointer;
}

.privacy-link {
    color: #4F86BA;
    text-decoration: underline;
}

/* ---- Tour Section ---- */
.tour-section {
    padding: 30px 0 60px;
    background: #fff;
    width: 940px;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.tour-date-label {
    font-size: 15px;
    font-weight: 700;
    line-height: 23px;
    color: #222222;
    margin-bottom: 10px;
}

/* ---- Tabs ---- */
.tour-tabs {
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid #CCCCCC;
    margin-bottom: 0;
    gap: 0;
}

.tour-tab {
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    border: 1px solid #CCCCCC;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    background: #fff;
    color: #222222;
    transition: background .2s, color .2s;
    text-decoration: none;
    user-select: none;
}

.tour-tab.active {
    background: #6C1459;
    color: #fff;
    border-color: #6C1459;
}

.tour-tab:hover:not(.active) {
    background: rgba(0,0,0,.05);
}

.tab-panel {
    display: none;
    padding-top: 20px;
}

.tab-panel.active {
    display: block;
}

/* ---- Tour Grid ---- */
.tour-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tour-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #ECEDDE;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.tour-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.tour-card-header {
    background: #E82C2A;
    padding: 11px 15px 12px;
    text-align: center;
}

.tour-card-time {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #fff;
    margin: 0;
}

.tour-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.tour-card-image-placeholder {
    width: 100%;
    height: 140px;
    background: #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #969696;
    font-size: 13px;
}

.tour-card-body {
    padding: 20px 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 240px;
    overflow: hidden;
}

.tour-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #222222;
    margin: 0;
    min-height: 54px;
    align-self: flex-start;
    width: 100%;
}

.tour-card-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #222222;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.tour-card-footer {
    background: #F7F8F2;
    padding: 15px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-more-details {
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: #222222;
    border: 1px solid #969696;
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
    min-width: 125px;
    text-align: center;
}

.btn-more-details:hover {
    background: rgba(0,0,0,.05);
    color: #222222;
}

.btn-select-tour {
    flex: 1;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: #fff;
    background: #6C1459;
    border: none;
    border-radius: 22.5px;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
}

.btn-select-tour:hover {
    background: #5a1049;
}

.btn-select-tour.selected {
    background: #E82C2A;
}

.tour-selected-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #E82C2A;
}

.tour-selected-indicator.visible {
    display: flex;
}

/* ---- Submit Button ---- */
.submit-section {
    width: 940px;
    max-width: 100%;
    padding: 0 15px;
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.btn-submit-registration {
    padding: 12px 40px;
    background: #6C1459;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 22.5px;
    cursor: pointer;
    transition: background .2s;
}

.btn-submit-registration:hover {
    background: #5a1049;
}

/* ---- Success / Error ---- */
.alert-routes {
    width: 940px;
    max-width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-routes-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-routes-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 2px solid #222222;
}

.footer-informa {
    background: #525A5C;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

.footer-corporate {
    background: #0D2D6D;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

/* ---- Summary Page ---- */
.summary-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 30px 20px;
}

.summary-tour-card {
    flex: 0 0 300px;
    background: #F7F8F2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-tour-card-header {
    background: #E82F2C;
    padding: 15px 0 12px 20px;
}

.summary-tour-meta {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #fff;
    margin: 0 0 4px 0;
}

.summary-tour-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #fff;
    margin: 0;
}

.summary-tour-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.summary-tour-image-placeholder {
    width: 100%;
    height: 140px;
    background: #CCCCCC;
}

.summary-tour-footer {
    background: #ECEDDE;
    padding: 15px 20px 20px;
    display: flex;
    gap: 20px;
}

.summary-details-box {
    flex: 1;
    background: #ECEDDE;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-details-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    color: #222222;
    margin: 0 0 5px 0;
}

.summary-details-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #222222;
    margin: 0;
    white-space: pre-line;
}

.summary-divider {
    height: 1px;
    background: #CCCCCC;
    margin: 0 20px;
}

.summary-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.btn-back {
    padding: 7.5px 18.75px;
    border: 1px solid #969696;
    border-radius: 22.5px;
    background: transparent;
    font-size: 15px;
    color: #222222;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}

.btn-back:hover {
    background: rgba(0,0,0,.05);
    color: #222222;
}

.btn-book {
    padding: 7.5px 18.75px;
    background: #6C1459;
    border: none;
    border-radius: 22.5px;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.btn-book:hover {
    background: #5a1049;
}

/* ---- Footer with logos ---- */
.footer-logos {
    border-top: 2px solid #222222;
    background: #fff;
}

.footer-logos-inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 40px 15px;
    display: flex;
    align-items: center;
    gap: 69px;
    flex-wrap: wrap;
}

.footer-logos-inner img {
    height: 57px;
    width: auto;
    object-fit: contain;
}

.footer-corporate-links {
    background: #000;
    padding: 20px 0;
    text-align: center;
}

.footer-corporate-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.footer-corporate-links li {
    display: flex;
    align-items: center;
}

.footer-corporate-links a {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    padding: 0 2px;
}

.footer-corporate-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .summary-layout {
        flex-direction: column;
    }

    .summary-tour-card {
        flex: none;
        width: 100%;
    }

    .footer-logos-inner {
        gap: 30px;
    }
}
@media (max-width: 1024px) {
    .content-width,
    .tour-section,
    .submit-section {
        width: 100%;
    }

    .hero-banner-content {
        width: 100%;
        left: 0;
        transform: none;
    }

    .registration-form-wrapper {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .event-header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .event-header-details {
        text-align: center;
    }

    .hero-slide-title {
        font-size: 24px;
    }

    .hero-date-badge {
        font-size: 18px;
    }

    .form-row-2 {
        flex-direction: column;
    }

    .tour-card {
        flex: 0 0 100%;
    }

    .hero-banner {
        height: auto;
        min-height: 280px;
        padding: 40px 15px;
    }

    .hero-banner-bg {
        opacity: 0.3;
        width: 100%;
    }

    .hero-banner-content {
        position: static;
        width: 100%;
        padding: 0;
    }
}

/* ---- Tour Detail Modal ---- */
.modal-tour .modal-dialog {
    max-width: 940px;
    margin: 1.75rem auto;
}

.modal-tour .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 6px -5px rgba(0,0,0,.2);
    overflow: hidden;
}

.modal-tour-header {
    background: #ECEDDE;
    padding: 30px 60px 15px;
    display: flex;
    justify-content: flex-end;
    border-radius: 8px 8px 0 0;
}

.modal-tour-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #E82C2A;
}

.modal-tour-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.modal-tour-photo-wrap {
    position: absolute;
    left: 60px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-tour-photo {
    width: 324px;
    height: 216px;
    object-fit: cover;
    display: block;
}

.modal-tour-photo-placeholder {
    width: 324px;
    height: 216px;
    background: rgba(0,0,0,.2);
}

.modal-tour-photo-credit {
    font-size: 13px;
    font-style: italic;
    color: #fff;
    line-height: 22.5px;
}

.modal-tour-title {
    position: absolute;
    right: 60px;
    bottom: 30px;
    left: 430px;
    font-size: 34px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.modal-tour-body {
    padding: 30px 150px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
}

.modal-tour-section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 33px;
    color: #222222;
    margin: 0 0 4px 0;
}

.modal-tour-section-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 23px;
    color: #222222;
    margin: 0;
}

.modal-tour-footer {
    background: #ECEDDE;
    padding: 15px 60px 30px;
    display: flex;
    gap: 10px;
    border-radius: 0 0 8px 8px;
}

.btn-close-tour {
    padding: 7.5px 18.75px;
    background: #6C1459;
    color: #fff;
    border: none;
    border-radius: 22.5px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s;
}

.btn-close-tour:hover {
    background: #5a1049;
}

@media (max-width: 960px) {
    .modal-tour .modal-dialog {
        margin: 0.5rem;
    }

    .modal-tour-hero {
        height: auto;
        min-height: 200px;
        padding-bottom: 20px;
    }

    .modal-tour-photo-wrap {
        position: static;
        margin: 15px 15px 0;
    }

    .modal-tour-photo,
    .modal-tour-photo-placeholder {
        width: 100%;
        max-width: 324px;
        height: 160px;
    }

    .modal-tour-title {
        position: static;
        padding: 10px 15px;
        font-size: 22px;
    }

    .modal-tour-body {
        padding: 20px;
    }

    .modal-tour-header,
    .modal-tour-footer {
        padding: 15px 20px;
    }
}
