/* ===============================
   PART 16
   Pro Checkout + Payment Pages
================================ */

.p16-checkout-page {
    padding: 28px;
}

.p16-checkout-hero {
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.16), transparent 34%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.p16-checkout-hero span {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,122,0,0.13);
    border: 1px solid rgba(255,122,0,0.28);
    color: #ffe5c7;
    font-weight: 900;
    margin-bottom: 12px;
}

.p16-checkout-hero h1 {
    color: white;
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom: 8px;
}

.p16-checkout-hero p {
    color: rgba(255,255,255,0.66);
}

.p16-checkout-hero a {
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    font-weight: 900;
}

.p16-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 440px;
    gap: 24px;
    align-items: start;
}

.p16-checkout-form {
    display: grid;
    gap: 20px;
}

.p16-form-card,
.p16-summary-card,
.p16-success-card,
.p16-payment-box {
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.12), transparent 38%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.20);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}

.p16-form-card {
    padding: 24px;
}

.p16-summary-card {
    padding: 24px;
    position: sticky;
    top: 112px;
}

.p16-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.p16-card-head > span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,122,0,0.13);
    border: 1px solid rgba(255,122,0,0.24);
    font-size: 25px;
}

.p16-card-head h2 {
    color: white;
    margin-bottom: 5px;
}

.p16-card-head p {
    color: rgba(255,255,255,0.58);
}

.p16-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.p16-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.p16-field label {
    color: white;
    font-weight: 900;
}

.p16-field input,
.p16-field select,
.p16-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    border-radius: 15px;
    padding: 15px;
    outline: none;
}

.p16-field select option {
    background: #07111f;
    color: white;
}

.p16-field input::placeholder,
.p16-field textarea::placeholder {
    color: rgba(255,255,255,0.42);
}

.p16-error-box {
    margin-bottom: 18px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255,56,56,0.12);
    border: 1px solid rgba(255,56,56,0.25);
    color: #ffb0b0;
}

.p16-error-box p {
    margin: 0 0 6px;
}

.p16-payment-grid {
    display: grid;
    gap: 12px;
}

.p16-payment-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    cursor: pointer;
    transition: 0.2s ease;
}

.p16-payment-card input {
    display: none;
}

.p16-payment-card.active {
    border-color: var(--orange);
    background: rgba(255,122,0,0.12);
    box-shadow: 0 0 24px rgba(255,122,0,0.15);
}

.p16-payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: rgba(0,157,255,0.10);
    border: 1px solid rgba(0,157,255,0.20);
    font-size: 24px;
}

.p16-payment-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.p16-payment-title strong {
    color: white;
}

.p16-payment-title small {
    color: #ffb000;
    font-weight: 900;
}

.p16-payment-card p {
    color: rgba(255,255,255,0.58);
    font-size: 14px;
}

.p16-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.p16-terms input {
    margin-top: 3px;
}

.p16-place-order {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
    font-weight: 900;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255,122,0,0.26);
}

.p16-items-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.p16-mini-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.p16-mini-img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.p16-mini-img img,
.p16-mini-img .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p16-mini-info h3 {
    color: white;
    font-size: 15px;
    margin-bottom: 4px;
}

.p16-mini-info p {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    margin-bottom: 2px;
}

.p16-mini-item strong {
    color: #ffb000;
    white-space: nowrap;
}

.p16-summary-lines {
    display: grid;
    gap: 12px;
}

.p16-summary-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255,255,255,0.68);
}

.p16-summary-lines strong {
    color: white;
}

.p16-delivery-note {
    display: block !important;
    padding: 13px;
    border-radius: 15px;
    background: rgba(0,157,255,0.08);
    border: 1px solid rgba(0,157,255,0.18);
    color: #dff4ff !important;
    font-size: 13px;
    line-height: 1.5;
}

.p16-total-line {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.p16-total-line span,
.p16-total-line strong {
    font-size: 22px;
    color: white !important;
    font-weight: 900;
}

.p16-success-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px;
    text-align: center;
}

.p16-success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: rgba(24,196,92,0.14);
    border: 1px solid rgba(24,196,92,0.28);
    font-size: 38px;
}

.p16-success-card h2 {
    color: white;
    font-size: 34px;
    margin-bottom: 10px;
}

.p16-success-card p {
    color: rgba(255,255,255,0.64);
    margin-bottom: 8px;
}

.p16-success-card > strong {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 15px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ffb000;
    margin-bottom: 22px;
}

.p16-success-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.p16-success-grid div,
.p16-payment-details div {
    padding: 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.p16-success-grid span,
.p16-payment-details span {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    margin-bottom: 6px;
}

.p16-success-grid b,
.p16-payment-details strong {
    color: white;
}

.p16-success-actions,
.p16-payment-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.p16-primary-btn,
.p16-secondary-btn,
.p16-whatsapp-btn {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.p16-primary-btn {
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
}

.p16-secondary-btn {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
}

.p16-whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #17b955);
    color: white;
}

.p16-payment-page {
    min-height: 70vh;
    padding: 34px;
    display: grid;
    place-items: center;
}

.p16-payment-box {
    width: 100%;
    max-width: 760px;
    padding: 34px;
    text-align: center;
}

.p16-payment-icon-big {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 42px;
}

.p16-payment-box.success .p16-payment-icon-big {
    background: rgba(24,196,92,0.14);
    border: 1px solid rgba(24,196,92,0.30);
}

.p16-payment-box.failed .p16-payment-icon-big {
    background: rgba(255,56,56,0.14);
    border: 1px solid rgba(255,56,56,0.30);
}

.p16-payment-box h1 {
    color: white;
    font-size: 38px;
    margin-bottom: 10px;
}

.p16-payment-box p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.p16-order-number {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 15px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ffb000;
    font-weight: 900;
    margin-bottom: 18px;
}

.p16-payment-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

/* Tablet */
@media (max-width: 1050px) {
    .p16-checkout-layout {
        grid-template-columns: 1fr;
    }

    .p16-summary-card {
        position: relative;
        top: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .p16-checkout-page {
        padding: 14px;
    }

    .p16-checkout-hero {
        padding: 20px;
        border-radius: 24px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .p16-checkout-hero h1 {
        font-size: 34px;
    }

    .p16-checkout-hero a {
        width: 100%;
        text-align: center;
    }

    .p16-checkout-layout {
        gap: 16px;
    }

    .p16-form-card,
    .p16-summary-card {
        padding: 18px;
        border-radius: 24px;
    }

    .p16-card-head {
        align-items: flex-start;
    }

    .p16-card-head > span {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 22px;
    }

    .p16-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .p16-payment-title {
        flex-direction: column;
        gap: 4px;
    }

    .p16-mini-item {
        grid-template-columns: 58px 1fr;
    }

    .p16-mini-item strong {
        grid-column: 2;
    }

    .p16-mini-img {
        width: 58px;
        height: 58px;
    }

    .p16-success-card {
        padding: 22px;
        border-radius: 24px;
    }

    .p16-success-card h2 {
        font-size: 28px;
    }

    .p16-success-grid,
    .p16-payment-details {
        grid-template-columns: 1fr;
    }

    .p16-success-actions,
    .p16-payment-actions {
        flex-direction: column;
    }

    .p16-primary-btn,
    .p16-secondary-btn,
    .p16-whatsapp-btn {
        width: 100%;
    }

    .p16-payment-page {
        padding: 18px;
    }

    .p16-payment-box {
        padding: 22px;
        border-radius: 24px;
    }

    .p16-payment-box h1 {
        font-size: 30px;
    }
}