/* =========================================================
   COLORS
========================================================= */

:root {
    --primary: #123f6d;
    --primary-dark: #092b4d;
    --secondary: #b99a5b;
    --page-bg: #f4f6f8;
}


/* =========================================================
   GENERAL
========================================================= */

body {
    background: var(--page-bg);
    font-family: "Inter", sans-serif;
    color: #333;
}

.registration-wrapper {
    max-width: 1050px;
    margin: 40px auto;
}

.registration-card {
    background: #fff;
    border: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

.registration-card .card-body {
    padding: 40px;
}


/* =========================================================
   HEADER
========================================================= */

.event-header {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    color: #fff;
    padding: 35px 40px;
    border-radius: 12px 12px 0 0;
}

.event-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-header p {
    margin-bottom: 0;
    opacity: .9;
}


/* =========================================================
   SECTION TITLES
========================================================= */

.section-title {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.section-title i {
    margin-right: 7px;
}


/* =========================================================
   FORM
========================================================= */

.form-label {
    font-weight: 600;
    font-size: .92rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.form-control,
.form-select {
    min-height: 46px;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 .2rem
        rgba(18,63,109,.12);
}


/* =========================================================
   STEP INDICATOR
========================================================= */

.registration-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 45px;
}

.step-item {
    width: 125px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 44px;
    height: 44px;

    margin: 0 auto 8px;

    border-radius: 50%;

    background: #e9ecef;
    color: #6c757d;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;

    transition: .2s;
}

.step-label {
    font-size: .82rem;
    color: #6c757d;
}

.step-item.active .step-number {
    background: var(--primary);
    color: #fff;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-item.completed .step-number {
    background: #198754;
    color: #fff;
}

.step-item.completed .step-label {
    color: #198754;
}

.step-line {
    height: 2px;
    background: #dee2e6;

    flex: 1;

    margin-top: 22px;

    max-width: 100px;
}


/* =========================================================
   FORM STEPS
========================================================= */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}


/* =========================================================
   MEMBERSHIP
========================================================= */

.membership-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;

    border: 1px solid #dee2e6;
    border-radius: 10px;

    padding: 20px;

    cursor: pointer;

    height: 100%;

    transition: .2s;
}

.membership-card:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.membership-card:has(input:checked) {
    border: 2px solid var(--primary);
    background: #f3f8fd;
}


/* =========================================================
   REGISTRATION RATES
========================================================= */

.rate-container {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #dee2e6;
}

.rate-card {
    display: flex;
    align-items: center;
    gap: 15px;

    border: 1px solid #dee2e6;
    border-radius: 10px;

    padding: 18px 20px;
    margin-bottom: 12px;

    cursor: pointer;

    transition: .2s;
}

.rate-card:hover {
    border-color: var(--primary);
    background: #fafcff;
}

.rate-card:has(input:checked) {
    border: 2px solid var(--primary);
    background: #f3f8fd;
}

.rate-price {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   STEP NAVIGATION
========================================================= */

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #eee;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* =========================================================
   PAYMENT
========================================================= */

.registration-summary {
    background: #f8f9fa;

    border-left:
        4px solid var(--primary);

    padding: 20px;

    border-radius: 5px;
}

.bank-details {
    background: #C9DFF5;

    border: 1px solid #dee2e6;

    border-radius: 10px;

    padding: 20px;
}

.payment-preview {
    background: #f8f9fa;

    border: 1px solid #dee2e6;

    border-radius: 10px;

    padding: 15px;

    text-align: center;
}

.payment-preview img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 6px;
}


/* =========================================================
   FINAL REVIEW
========================================================= */

.final-summary {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .registration-wrapper {
        margin: 0;
    }

    .event-header {
        border-radius: 0;
        padding: 25px 20px;
    }

    .registration-card {
        border-radius: 0;
    }

    .registration-card .card-body {
        padding: 25px 18px;
    }

    .registration-steps {
        margin-bottom: 35px;
    }

    .step-item {
        width: 70px;
    }

    .step-number {
        width: 36px;
        height: 36px;
    }

    .step-label {
        font-size: .65rem;
    }

    .step-line {
        max-width: 30px;
        margin-top: 18px;
    }

    .rate-card {
        align-items: flex-start;
    }

    .rate-price {
        font-size: .9rem;
    }

    .summary-row {
        flex-direction: column;
        gap: 3px;
    }

}
