* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #09101d;
    color: #ffffff;
}

.registration-page {
    width: min(1000px, 94%);
    margin: 0 auto;
    padding: 30px 0 60px;
}


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

.registration-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.registration-header h1 {
    margin: 0;
    font-size: 32px;
}

.registration-header p {
    margin: 5px 0 0;
    color: #aaa;
}


/* =========================================
   CARDS
========================================= */

.event-card,
.registration-card,
.success-card {
    background: #172236;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.20);
}


/* =========================================
   EVENT
========================================= */

.event-card h2 {
    margin-top: 0;
    color: #ff7a00;
    font-size: 30px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #cbd2df;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================
   HEADING
========================================= */

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading span {
    color: #ff7a00;
    font-size: 20px;
    font-weight: bold;
}

.section-heading h2 {
    margin: 0;
}


/* =========================================
   SEARCH
========================================= */

.section-note {
    color: #aeb7c6;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    flex: 1;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid #31405a;
    background: #0d1626;
    color: #fff;
    font-size: 15px;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 13px 20px;
    cursor: pointer;
}

#findMemberBtn,
.primary-btn,
.submit-btn {
    background: #ff7a00;
    color: #fff;
    font-weight: bold;
}


/* =========================================
   MEMBER DETAILS
========================================= */

.member-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    background: #0d1626;
    border-radius: 8px;
    padding: 13px;
}

.detail-label {
    font-size: 12px;
    color: #8995a8;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
}


/* =========================================
   CONFIRMATION
========================================= */

.confirmation-box,
.info-box,
.declaration-box,
.message-box {
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}

.confirmation-box {
    display: flex;
    gap: 12px;
    background: rgba(0, 180, 100, .12);
}

.confirmation-box i {
    color: #45d483;
    font-size: 20px;
}


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

.ride-field {
    margin-bottom: 18px;
}

.ride-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.declaration-box {
    background: #0d1626;
}

.declaration-box h3 {
    color: #ff7a00;
}

.check-row {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.check-row input {
    width: auto;
}


/* =========================================
   SUCCESS
========================================= */

.success-card {
    text-align: center;
}

.success-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c7c50;
    font-size: 32px;
}

.registration-number {
    margin: 20px 0;
    padding: 15px;
    background: #0d1626;
    border-radius: 8px;
    color: #ff7a00;
    font-size: 22px;
    font-weight: bold;
}

.back-btn {
    display: inline-block;
    background: #ff7a00;
    color: #fff;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
}


/* =========================================
   STATES
========================================= */

.hidden {
    display: none !important;
}

.loading-state {
    text-align: center;
    padding: 25px;
    color: #aaa;
}

.form-message {
    margin-top: 10px;
    color: #ff9a9a;
}

.info-box {
    background: rgba(255, 122, 0, .10);
    color: #ffd0a8;
}


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

@media (max-width: 700px) {

    .search-row {
        flex-direction: column;
    }

    .member-details {
        grid-template-columns: 1fr;
    }

    .registration-header {
        align-items: flex-start;
    }

}

.ride-subsection {
    margin-bottom: 28px;
    padding: 20px;
    background: #0d1626;
    border-radius: 10px;
}

.ride-subsection h3 {
    margin-top: 0;
    color: #ff7a00;
}

.locked-note {
    color: #aeb7c6;
    font-size: 14px;
    margin-bottom: 18px;
}

.payment-summary {
    background: #0d1626;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-amount strong {
    color: #ff7a00;
    font-size: 22px;
}

.previous-file {
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0, 180, 100, 0.12);
    color: #8fe0b0;
    font-size: 13px;
}



.event-payment {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
    position: relative;
}

.payment-info {
    flex: 1;
    padding-top: 4px;
}

.payment-qr {
    flex: 0 0 180px;
    width: 180px;
    display: flex;
    justify-content: flex-end;
    align-self: flex-start;
    margin-top: -8px;
}

.payment-qr img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .event-payment {
        flex-direction: column;
        gap: 14px;
    }

    .payment-qr {
        flex: none;
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .payment-qr img {
        width: 170px;
    }
}
