/* ==========================================================================
   BEYOND THE UNIFORM AFRICA SUMMIT - CHECKOUT PAGE STYLING
   Precision implementation matching the official checkout mockup
   ========================================================================== */

/* Page Banner */
.btu-checkout-banner {
    position: relative;
    padding: 135px 0 55px 0;
    background-color: #060b17;
    overflow: hidden;
}

.btu-banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center 25%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: brightness(0.7) contrast(1.15);
    z-index: 1;
}

.btu-banner-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 40%, rgba(10, 22, 45, 0.72) 0%, rgba(6, 11, 23, 0.95) 100%),
                linear-gradient(180deg, rgba(6, 11, 23, 0.85) 0%, rgba(6, 11, 23, 0.97) 100%);
    z-index: 2;
}

/* Left edge decorative curved ribbon swoops */
.btu-banner-ribbon-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.btu-banner-ribbon-left:before {
    content: "";
    position: absolute;
    top: -40px;
    left: -80px;
    width: 200px;
    height: 320px;
    border-radius: 50%;
    border-right: 18px solid #e5a83b;
    border-bottom: 24px solid #0d5c3a;
    transform: rotate(25deg);
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}

.btu-banner-ribbon-left:after {
    content: "";
    position: absolute;
    top: 40px;
    left: -90px;
    width: 180px;
    height: 260px;
    border-radius: 50%;
    border-right: 8px solid #f5b74c;
    transform: rotate(18deg);
    opacity: 0.8;
}

/* Right side faint Africa geometric outline map */
.btu-banner-map-right {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 260px;
    height: 290px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.17;
}

.btu-banner-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1) brightness(1.5);
}

.btu-banner-container {
    position: relative;
    z-index: 4;
}

/* Breadcrumb */
.btu-checkout-breadcrumb {
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.4;
}

.btu-checkout-breadcrumb .bc-dot {
    color: #e5a83b;
    font-size: 14px;
    margin-right: 8px;
    line-height: 1;
}

.btu-checkout-breadcrumb .bc-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btu-checkout-breadcrumb .bc-link:hover {
    color: #e5a83b;
}

.btu-checkout-breadcrumb .bc-sep {
    margin: 0 8px;
    color: #64748b;
    font-size: 13px;
}

.btu-checkout-breadcrumb .bc-current {
    color: #ffffff;
    font-weight: 600;
}

/* Heading & Subtitle */
.btu-checkout-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

.btu-checkout-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #e2e8f0;
    margin: 0;
    font-weight: 400;
    opacity: 0.95;
    max-width: 650px;
}

/* Step Indicator (Visual Only - Sits cleanly above Left Column) */
.btu-step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 22px;
    padding: 0 4px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.step-circle.active {
    background-color: #0d5c3a;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(13, 92, 58, 0.28);
}

.step-label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.step-label.active {
    font-weight: 700;
    color: #0f172a;
}

.step-connector {
    flex: 1;
    min-width: 25px;
    max-width: 100px;
    height: 1.5px;
    background-color: #cbd5e1;
    margin: 0 12px;
}

/* Main Checkout Wrapper */
.btu-checkout-main {
    background-color: #f8fafc;
    padding: 40px 0 90px 0;
    min-height: 600px;
}

.btu-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 32px;
    align-items: start;
}

/* Left Column Cards */
.btu-checkout-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Card Universal Styling */
.btu-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Card Header */
.btu-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.card-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #0d5c3a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(13, 92, 58, 0.2);
}

.card-icon-badge svg {
    stroke: #ffffff;
}

.card-header-text {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.25;
}

.card-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Form Grid */
.btu-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.form-label .req {
    color: #dc2626;
    margin-left: 2px;
    font-weight: 700;
}

.form-label .opt {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14px;
}

.form-control:focus {
    border-color: #0d5c3a;
    box-shadow: 0 0 0 3.5px rgba(13, 92, 58, 0.12);
}

.form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error {
    display: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.3;
}

.form-group.has-error .field-error {
    display: block;
    animation: fadeInError 0.2s ease-in;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Phone Number Input Group */
.phone-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.phone-prefix-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 10px 0 12px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.phone-prefix-wrap:focus-within {
    border-color: #0d5c3a;
    z-index: 2;
}

.phone-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 4px;
}

.ghana-flag-svg {
    width: 21px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: block;
}

.phone-prefix-select {
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    padding-right: 14px;
    appearance: none;
    -webkit-appearance: none;
}

.prefix-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    stroke: #64748b;
}

.phone-control {
    border-radius: 0 8px 8px 0 !important;
    border-left: 1px solid #cbd5e1 !important;
    flex: 1;
}

/* Custom Select Dropdowns */
.select-wrap {
    position: relative;
    width: 100%;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    cursor: pointer;
}

.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    stroke: #64748b;
    transition: transform 0.2s ease;
}

.form-select:focus + .select-chevron {
    stroke: #0d5c3a;
}

/* Ticket Selection Grid */
.btu-tickets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 6px;
}

.ticket-option-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    outline: none;
    position: relative;
}

.ticket-option-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ticket-option-card.selected {
    border: 2px solid #0d5c3a !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 4px 16px rgba(13, 92, 58, 0.12);
}

.ticket-radio-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.custom-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ticket-option-card.selected .custom-radio {
    border-color: #0d5c3a;
}

.custom-radio .radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0d5c3a;
    display: none;
}

.ticket-option-card.selected .custom-radio .radio-dot {
    display: block;
}

.ticket-title-wrap {
    flex: 1;
}

.ticket-name {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.ticket-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.45;
    min-height: 38px;
}

.ticket-price-display {
    font-family: 'Poppins', sans-serif;
    font-size: 19.5px;
    font-weight: 800;
    color: #e5a83b;
    margin-left: 36px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* RIGHT COLUMN - ORDER SUMMARY */
.btu-checkout-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 54px; /* Perfectly aligns top of Order Summary with Attendee Information */
}

.btu-summary-card {
    padding: 28px 24px;
}

/* Event Thumbnail Sub-Card */
.summary-event-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    margin-bottom: 22px;
}

.summary-event-thumb-wrap {
    width: 86px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.summary-event-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.summary-event-info {
    flex: 1;
}

.summary-event-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.summary-event-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.summary-event-meta:last-child {
    margin-bottom: 0;
}

.meta-icon-gold {
    color: #e5a83b;
    font-size: 11.5px;
}

/* Summary Rows */
.summary-rows-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.summary-row .s-label {
    font-size: 14.5px;
    color: #475569;
    font-weight: 400;
}

.summary-row .s-value {
    font-size: 14.5px;
    color: #0f172a;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 20px 0;
}

/* Total Row */
.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 22px;
    gap: 12px;
}

.total-label {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    flex-shrink: 0;
}

.total-amount {
    font-size: 21px;
    font-weight: 800;
    color: #e5a83b;
    letter-spacing: -0.3px;
    text-align: right;
    white-space: nowrap;
}

/* Proceed to Payment Button */
.btu-proceed-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #f5b74c 0%, #e59b2b 100%);
    color: #111827;
    border: none;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(229, 168, 59, 0.35);
    transition: all 0.25s ease;
}

.btu-proceed-btn:hover {
    background: linear-gradient(135deg, #ffc35b 0%, #efa22f 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 168, 59, 0.45);
}

.btu-proceed-btn:active {
    transform: translateY(1px);
}

.btu-proceed-btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-lock-icon {
    flex-shrink: 0;
    color: #111827;
}

.btn-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btu-proceed-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Secure Badge Below Button */
.paystack-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.paystack-secure-badge svg {
    color: #64748b;
    flex-shrink: 0;
}

/* Payment Logos - Exact Single-Row Alignment matching mockup */
.payment-logos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.pay-badge {
    height: 26px;
    padding: 0 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.pay-badge svg,
.pay-badge img {
    height: 18px;
    width: auto;
    display: block;
}

/* "Your Information is Secure" Card */
.btu-secure-info-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.secure-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.secure-text-wrap {
    flex: 1;
}

.secure-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 4px 0;
}

.secure-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #374151;
    margin: 0;
    line-height: 1.45;
}

/* Feedback Notice Toast / Modal */
.checkout-notice-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    max-width: 440px;
    width: calc(100% - 60px);
    animation: slideUpNotice 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpNotice {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-notice-card {
    background: #0f172a;
    border-left: 4px solid #e5a83b;
    border-radius: 10px;
    padding: 16px 20px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
}

.notice-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #e5a83b;
    margin-bottom: 2px;
}

.notice-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.4;
}

.notice-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.notice-close-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */

@media (max-width: 1080px) {
    .btu-checkout-grid {
        grid-template-columns: 1fr 360px;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .btu-checkout-banner {
        padding: 110px 0 45px 0;
    }
    .btu-checkout-title {
        font-size: 36px;
    }
    .btu-banner-map-right {
        display: none;
    }
    .btu-checkout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .btu-checkout-right {
        order: 2;
        margin-top: 0 !important;
    }
    .btu-checkout-left {
        order: 1;
    }
    .step-connector {
        max-width: 50px;
        min-width: 25px;
        margin: 0 10px;
    }
}

@media (max-width: 640px) {
    .btu-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
    .btu-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .btu-tickets-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ticket-option-card {
        padding: 18px 16px;
    }
    .ticket-desc {
        min-height: auto;
    }
    .ticket-price-display {
        margin-left: 36px;
        font-size: 19px;
        white-space: nowrap;
    }
    .btu-checkout-title {
        font-size: 30px;
    }
    .btu-checkout-subtitle {
        font-size: 14.5px;
    }
    .step-label {
        font-size: 13.5px;
    }
    .step-connector {
        min-width: 15px;
        margin: 0 6px;
    }
    .checkout-notice-modal {
        bottom: 20px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .btu-step-indicator {
        justify-content: space-between;
    }
    .step-label {
        display: none;
    }
    .step-item.active .step-label {
        display: inline-block;
        font-size: 13px;
    }
    .step-connector {
        min-width: 20px;
        margin: 0 8px;
    }
    .btu-banner-ribbon-left {
        width: 140px;
    }
}

/* Floating button safety and stacking priority */
.btu-proceed-btn {
    position: relative;
    z-index: 95;
}

@media (max-width: 767px) {
    .btu-summary-card {
        padding-bottom: 32px;
    }
    .scroll-to-top {
        z-index: 85 !important;
    }
}
