/* ========================================================
   Programs 2 - Course Enrollment & Checkout Stylesheet
   File: assets/css/programs2.css
   ======================================================== */

/* Banner Height Adjustment */
section.slider-pr .carousel-item {
    height: auto !important;
    max-height: 220px !important;
    overflow: hidden;
}

section.slider-pr .carousel-item img.pg2-banner-hero-img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 768px) {

    section.slider-pr .carousel-item,
    section.slider-pr .carousel-item img.pg2-banner-hero-img {
        height: 140px !important;
        max-height: 140px !important;
    }
}

/* Enrollment Section & Card Styling */
.pg2-section-enrollment {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background-color: #F3F9FE;
}

.pg2-section-enrollment>.container {
    width: 100%;
}

.pg2-checkout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    padding: 28px 36px;
    margin: 0 auto;
}

.pg2-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.pg2-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.pg2-field-label .pg2-required-star {
    color: #ef4444;
    margin-left: 2px;
}

/* Custom Input with Icon */
.pg2-input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.pg2-input-icon-group .pg2-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
}

.pg2-input-icon-group .form-control {
    padding: 10px 14px 10px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pg2-input-icon-group .form-control::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.pg2-input-icon-group .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

/* Phone input with country code */
.pg2-phone-group {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.2s ease;
}

.pg2-phone-group:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.pg2-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background-color: #ffffff;
    border: none;
    border-right: 1px solid #e2e8f0;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    cursor: default;
    white-space: nowrap;
}

.pg2-country-flag {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.pg2-country-btn i {
    font-size: 11px;
    color: #64748b;
}

.pg2-phone-group .form-control {
    border: none;
    padding: 10px 14px;
    border-radius: 0;
    font-size: 14px;
    color: #1e293b;
}

.pg2-phone-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

.pg2-phone-group .form-control::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Course Select */
.pg2-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pg2-select-wrap .pg2-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.pg2-select-wrap .form-select {
    padding: 11px 40px 11px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pg2-select-wrap .form-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    outline: none;
}

/* Course Edition Subtitle */
.pg2-edition-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: -0.1px;
}

/* Pricing Plan Section & Cards */
.pg2-pricing-plan-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 10px;
}

.pg2-plan-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
}

.pg2-plan-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg2-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pg2-plan-card:hover {
    border-color: #93c5fd;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.pg2-plan-card.selected {
    border-color: #0284c7;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.pg2-plan-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg2-plan-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.pg2-plan-card.selected .pg2-plan-card-name {
    color: #0369a1;
}

.pg2-plan-card-meta {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pg2-plan-card-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pg2-plan-card-price {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.pg2-plan-card.selected .pg2-plan-card-price {
    color: #0284c7;
}

.pg2-plan-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.2s ease;
}

.pg2-plan-card.selected .pg2-plan-card-check {
    border-color: #0284c7;
    background-color: #0284c7;
    color: #ffffff;
}

/* Fee Summary Box */
.pg2-fee-summary-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 20px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.pg2-fee-metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg2-fee-metric-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.pg2-fee-metric-icon.coins {
    color: #0284c7;
    background-color: #e0f2fe;
}

.pg2-fee-metric-icon.wallet {
    color: #0d9488;
    background-color: #ccfbf1;
}

.pg2-fee-metric-text .pg2-metric-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

.pg2-fee-metric-text .pg2-val-blue {
    font-size: 20px;
    font-weight: 700;
    color: #0284c7;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.pg2-fee-metric-text .pg2-val-dark {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.pg2-fee-divider {
    width: 1px;
    height: 34px;
    background-color: #e2e8f0;
    margin: 0 auto;
}

.pg2-remaining-badge {
    background-color: #e8f7f0;
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
}

.pg2-remaining-badge .pg2-rem-label {
    font-size: 11px;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 1px;
}

.pg2-remaining-badge .pg2-rem-amount {
    font-size: 19px;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.pg2-remaining-badge .pg2-rem-note {
    font-size: 10.5px;
    color: #475569;
    margin-top: 1px;
    font-weight: 400;
}

/* Choose Payment Option Cards */
.pg2-pay-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.pg2-pay-card:hover {
    border-color: #bae6fd;
}

.pg2-pay-card.selected {
    border-color: #38bdf8;
    background-color: #f0f9ff;
}

/* Custom Radio Dot */
.pg2-radio-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pg2-pay-card.selected .pg2-radio-indicator {
    border-color: #0284c7;
}

.pg2-radio-indicator .pg2-radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0284c7;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s ease;
}

.pg2-pay-card.selected .pg2-radio-indicator .pg2-radio-dot {
    opacity: 1;
    transform: scale(1);
}

.pg2-opt-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg2-opt-icon.card-badge {
    background-color: #e0f2fe;
    color: #0284c7;
}

.pg2-opt-icon.coins-badge {
    background-color: #e6f9f0;
    color: #0d9488;
}

.pg2-opt-text .pg2-opt-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}

.pg2-opt-text .pg2-opt-price {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Proceed Button */
.pg2-btn-proceed {
    width: 100%;
    background: #00b493;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 26px;
    box-shadow: 0 4px 12px rgba(0, 180, 147, 0.2);
}

.pg2-btn-proceed:hover {
    background: #009d7f;
    box-shadow: 0 6px 16px rgba(0, 180, 147, 0.3);
    color: #ffffff;
}

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

/* Trust Badges & Disclaimer */
.pg2-trust-wrapper {
    margin-top: 18px;
    text-align: center;
}

.pg2-security-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.pg2-security-line .pg2-shield-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pg2-security-line .pg2-shield-icon {
    color: #10b981;
    font-size: 15px;
}

.pg2-brand-logos {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.pg2-brand-logos .pg2-brand-svg {
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.pg2-trust-disclaimer {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.pg2-trust-disclaimer a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}

.pg2-trust-disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pg2-fee-summary-box {
        padding: 16px;
    }

    .pg2-fee-metric-text .pg2-val-blue,
    .pg2-fee-metric-text .pg2-val-dark {
        font-size: 20px;
    }

    .pg2-remaining-badge .pg2-rem-amount {
        font-size: 19px;
    }
}

@media (max-width: 767px) {
    .pg2-checkout-card {
        padding: 24px 18px;
    }

    .pg2-fee-summary-box {
        flex-direction: column;
        gap: 16px;
    }

    .pg2-fee-divider {
        display: none;
    }

    .pg2-remaining-badge {
        width: 100%;
    }

    .pg2-pay-card {
        padding: 14px 16px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 2%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    section.trending-onPr {
        padding: 21px 0 !important;
    }

    .pg2-checkout-card {
        padding: 20px 14px;
    }

    .pg2-plan-card {
        padding: 12px 14px;
    }

    section.slider-pr .carousel-item img.pg2-banner-hero-img {
        height: 220px !important;
        /* width: 71% !important; */
        object-fit: unset !important;
        /* object-position: center !important; */
    }

    section.slider-pr .carousel-item,
    section.slider-pr .carousel-item img.pg2-banner-hero-img {
        height: 106px !important;
        max-height: 140px !important;
    }
}