/* =====================================================
   NurseSphere Checkout
   checkout.css
===================================================== */

.checkout-section {

    padding: 80px 0;

    background: #f5f7fb;

    min-height: 100vh;

}

.checkout-header {

    text-align: center;

    margin-bottom: 50px;

}

.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    text-decoration: none;

    color: #2563eb;

    font-weight: 600;

    margin-bottom: 20px;

}

.back-link:hover {

    color: #1d4ed8;

}

.checkout-header h1 {

    font-size: 2.4rem;

    color: #1f2937;

    margin-bottom: 12px;

}

.checkout-header p {

    max-width: 700px;

    margin: auto;

    color: #6b7280;

    line-height: 1.7;

}

.checkout-layout {

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 35px;

    align-items: start;

}

.checkout-card,

.summary-card {

    background: #ffffff;

    border-radius: 18px;

    padding: 35px;

    box-shadow:

        0 10px 35px rgba(0,0,0,.08);

}

.card-header {

    margin-bottom: 30px;

}

.card-header h2 {

    margin-bottom: 8px;

    color: #1f2937;

}

.card-header p {

    color: #6b7280;

    line-height: 1.6;

}

.payment-section {

    margin-top: 35px;

}

.payment-section h2 {

    margin-bottom: 8px;

}

.payment-section p {

    color: #6b7280;

    margin-bottom: 20px;

}

.secure-payment {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: #ecfdf5;

    color: #047857;

    padding: 10px 18px;

    border-radius: 30px;

    font-weight: 600;

    margin-bottom: 25px;

}

/* =====================================================
   Billing Form
===================================================== */

.form-group {

    display: flex;

    flex-direction: column;

    margin-bottom: 22px;

}

.form-group label {

    font-size: .95rem;

    font-weight: 600;

    color: #374151;

    margin-bottom: 8px;

}

.form-group input {

    width: 100%;

    height: 54px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    padding: 0 16px;

    font-size: 15px;

    background: #ffffff;

    transition: .3s;

}

.form-group input:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,.12);

}

.form-group input[readonly] {

    background: #f9fafb;

    color: #6b7280;

    cursor: not-allowed;

}

/* =====================================================
   PayPal Hosted Fields
===================================================== */

.paypal-field {

    display: flex;

    align-items: center;

    width: 100%;

    height: 54px;

    padding: 0 15px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: #ffffff;

    transition: .3s;

}

.paypal-field:hover {

    border-color: #2563eb;

}

.paypal-field:focus-within {

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,.12);

}

/* =====================================================
   Expiry & CVV
===================================================== */

.payment-row {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

}

/* =====================================================
   Accepted Cards
===================================================== */

.accepted-cards {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid #e5e7eb;

}

.accepted-cards span {

    color: #6b7280;

    font-size: .9rem;

    font-weight: 500;

}

.card-icons {

    display: flex;

    gap: 14px;

}

.card-icons i {

    font-size: 2rem;

    color: #4b5563;

    transition: .3s;

}

.card-icons i:hover {

    color: #2563eb;

    transform: translateY(-2px);

}

/* =====================================================
   Order Summary
===================================================== */

.summary-card {

    position: sticky;

    top: 30px;

}

.summary-card h2 {

    margin-bottom: 25px;

    color: #1f2937;

}

.summary-item,

.summary-total {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 18px;

}

.summary-item span {

    color: #6b7280;

    font-weight: 500;

}

.summary-item strong {

    color: #111827;

    text-align: right;

}

.summary-item.description {

    display: block;

    margin-top: -5px;

    margin-bottom: 22px;

}

.summary-item.description p {

    color: #6b7280;

    font-size: .95rem;

    line-height: 1.7;

}

.summary-card hr {

    border: none;

    border-top: 1px solid #e5e7eb;

    margin: 25px 0;

}

.summary-total {

    margin-bottom: 30px;

}

.summary-total span {

    font-size: 1.1rem;

    font-weight: 600;

    color: #111827;

}

.summary-total strong {

    font-size: 1.7rem;

    color: #2563eb;

    font-weight: 700;

}

/* =====================================================
   Pay Button
===================================================== */

.checkout-btn {

    width: 100%;

    height: 56px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all .3s ease;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}

.checkout-btn:hover {

    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(37,99,235,.25);

}

.checkout-btn:disabled {

    background: #9ca3af;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}

/* =====================================================
   Security Section
===================================================== */

.checkout-security {

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #e5e7eb;

}

.security-item {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: #4b5563;

    font-size: .95rem;

}

.security-item:last-child {

    margin-bottom: 0;

}

.security-item i {

    width: 22px;

    color: #16a34a;

    font-size: 1rem;

}

/* =====================================================
   PayPal Hosted Fields State
===================================================== */

.paypal-field iframe {

    width: 100% !important;

    height: 100% !important;

}

/* =====================================================
   Responsive Design
===================================================== */

@media (max-width: 992px) {

    .checkout-layout {

        grid-template-columns: 1fr;

    }

    .summary-card {

        position: static;

    }

}

@media (max-width: 768px) {

    .checkout-section {

        padding: 50px 0;

    }

    .checkout-card,

    .summary-card {

        padding: 25px;

    }

    .checkout-header h1 {

        font-size: 2rem;

    }

    .payment-row {

        grid-template-columns: 1fr;

    }

    .accepted-cards {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }

}

@media (max-width: 480px) {

    .checkout-header h1 {

        font-size: 1.7rem;

    }

    .checkout-card,

    .summary-card {

        padding: 20px;

        border-radius: 14px;

    }

    .checkout-btn {

        height: 52px;

        font-size: .95rem;

    }

    .summary-total strong {

        font-size: 1.5rem;

    }

}