/* Custom Design System & Premium Aesthetics */

:root {
    --primary-gradient: linear-gradient(135deg, #1abdf4 0%, #0c9bc9 100%);
    --accent-color: #1abdf4;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --bg-dark: #f2f2f2;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #757575;
    --border-color: #e5e5e5;
    --input-bg: #ffffff;
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(26, 189, 244, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Lato', -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Container */
.registration-container, .polling-container, .thankyou-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

/* Headers */
.registration-header {
    text-align: center;
    margin-bottom: 3rem;
}

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.registration-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Sections */
.form-section {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-badge {
    background: var(--primary-gradient);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.section-title h2 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

/* Grids */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid-three {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-grid, .form-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

/* Preferred Mailbox Input with Prefix */
.input-prefix-wrapper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.input-prefix-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.input-prefix {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-color);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: bold;
}

.input-prefix-wrapper input {
    border: none;
    background: transparent;
    flex: 1;
}

.input-prefix-wrapper input:focus {
    box-shadow: none;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Plan Selector Grid */
.plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .plan-selector {
        grid-template-columns: 1fr;
    }
}

.plan-radio {
    display: none;
}

.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--accent-color);
    background: rgba(26, 189, 244, 0.05);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.plan-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.plan-price small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    color: var(--text-primary);
}

/* Checked Plan Card States */
.plan-radio:checked + .plan-card {
    border-color: var(--accent-color);
    background: rgba(26, 189, 244, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Validation and Alerts */
.validation-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    opacity: 0.95;
    box-shadow: 0 0 20px rgba(26, 189, 244, 0.4);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Polling & Spinner Page */
.polling-card {
    text-align: center;
    padding: 2rem 0;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    border: 4px solid rgba(26, 189, 244, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 1.2s linear infinite;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Steps Tracker on Polling */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    padding: 1rem 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.step-item.active {
    opacity: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.08));
}

.step-item.active .step-icon {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.step-item.completed .step-icon {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step-item.active .step-label {
    color: var(--text-primary);
}

.step-line {
    height: 2px;
    background: var(--border-color);
    flex-grow: 1;
    margin: 0 10px;
    margin-bottom: 24px;
    transition: background 0.5s ease;
}

.step-line.active {
    background: var(--accent-color);
}

/* Polling Errors */
.error-container {
    margin-top: 2rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.error-badge {
    color: #ef4444;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.error-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.retry-btn, .back-btn {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.retry-btn {
    background: var(--primary-gradient);
    color: white;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* Thank You Success Page */
.success-banner {
    text-align: center;
    margin-bottom: 2.5rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.success-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.success-banner p {
    color: var(--text-secondary);
}

/* Info Cards on Success Page */
.info-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.address-card {
    border-left: 4px solid #10b981;
}

.info-card h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mailbox-address {
    font-size: 1.4rem;
    line-height: 1.5;
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--border-color);
}

.address-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .address-metadata {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-val {
    font-weight: 600;
}

.meta-val.code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Next Steps List */
.steps-list {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.steps-list li {
    margin-bottom: 1.25rem;
}

.steps-list li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

.steps-list strong {
    font-size: 1rem;
}

.steps-list p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.dashboard-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.primary-action-btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.primary-action-btn:hover {
    opacity: 0.95;
    box-shadow: 0 0 15px rgba(26, 189, 244, 0.3);
}
/* =========================================================
   PLAN SELECTOR
   ========================================================= */

.plan-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 1.5rem;
}

.plan-radio {
    display: none;
}

.plan-card {
    min-width: 0;
}


/* =========================================================
   PLAN DETAILS CARD
   ========================================================= */

#plan-details.plan-details-card {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}


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

.plan-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.plan-details-eyebrow {
    display: block;
    margin: 0;
    color: #52657a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   FULL DETAILS BUTTON
   ========================================================= */

.plan-full-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d7e0ea;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

    .plan-full-details-btn:hover {
        border-color: #08aeea;
        background: #f0fbff;
        color: #009bd5;
    }

    .plan-full-details-btn svg {
        width: 13px;
        height: 13px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* =========================================================
   FEATURES GRID
   ========================================================= */

.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* More breathing room around the feature rows */
    padding: 0 16px;
    box-sizing: border-box;
}


/* =========================================================
   FEATURE ROW
   ========================================================= */

.plan-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 82px;
    padding: 15px 6px;
    box-sizing: border-box;
    border-bottom: 1px solid #edf1f5;
}


    /*
    Vertical separator between the two columns.
*/
    .plan-feature-row:nth-child(odd) {
        padding-right: 18px;
        border-right: 1px solid #edf1f5;
    }

    .plan-feature-row:nth-child(even) {
        padding-left: 18px;
    }


    /*
    Remove bottom border from the last row in each column.
*/
    .plan-feature-row:nth-child(3),
    .plan-feature-row:nth-child(4) {
        border-bottom: 0;
    }


/* =========================================================
   FEATURE LEFT SIDE
   ========================================================= */

.plan-feature-label {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 10px;
}


/*
    Icon
*/

.plan-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    background: #f5f9fc;
    color: #009ed6;
}

    .plan-feature-icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/*
    Title + description
*/

.plan-feature-label > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.plan-feature-label strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
}

.plan-feature-label small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
}


/* =========================================================
   HELP ICON
   ========================================================= */

.plan-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-left: 2px;
    border: 1px solid #b9c5d2;
    border-radius: 50%;
    color: #8a99aa;
    font-size: 9px;
    font-weight: 700;
    cursor: help;
}


/* =========================================================
   VALUES
   ========================================================= */

.plan-feature-value {
    display: flex;
    align-items: baseline;
    flex: 0 0 auto;
    gap: 3px;
    margin-left: 10px;
    white-space: nowrap;
    text-align: right;
}

    .plan-feature-value strong {
        color: #0f172a;
        font-size: 13px;
        font-weight: 700;
    }

    .plan-feature-value span {
        color: #94a3b8;
        font-size: 10px;
    }


/* =========================================================
   ADDITIONAL SERVICES
   ========================================================= */

.plan-feature-services {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 4px;
    margin-left: 8px;
    margin-top: 20px;
}

    .plan-feature-services span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        box-sizing: border-box;
        border: 1px solid #dce7ef;
        border-radius: 7px;
        background: #f8fafc;
        color: #64748b;
    }

    .plan-feature-services svg {
        width: 13px;
        height: 13px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .plan-feature-services b {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-left: 2px;
        border-radius: 50%;
        background: #eef8ff;
        color: #009bd5;
        font-size: 10px;
        font-weight: 700;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.plan-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 18px;
    box-sizing: border-box;
    background: #fafbfc;
    border-top: 1px solid #eef2f6;
}

    .plan-details-footer > span {
        display: flex;
        align-items: center;
        color: #64748b;
        font-size: 10px;
    }

.plan-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 50%;
    background: #e9f8ef;
    color: #16a34a;
    font-size: 9px;
    font-weight: 700;
}

.plan-text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #009bd5;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

    .plan-text-link:hover {
        color: #007fae;
        text-decoration: underline;
    }


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

@media (max-width: 700px) {

    .plan-selector {
        grid-template-columns: 1fr;
    }

    #plan-details.plan-details-card {
        grid-column: 1;
    }

    .plan-features-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }

    .plan-feature-row {
        min-height: 78px;
        padding: 14px 4px;
        border-right: 0 !important;
    }

        .plan-feature-row:nth-child(odd) {
            padding-right: 4px;
        }

        .plan-feature-row:nth-child(even) {
            padding-left: 4px;
        }

        .plan-feature-row:nth-child(3) {
            border-bottom: 1px solid #edf1f5;
        }

        .plan-feature-row:last-child {
            border-bottom: 0;
        }
}


@media (max-width: 480px) {

    .plan-details-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }

    .plan-full-details-btn {
        width: 100%;
    }

    .plan-feature-row {
        min-height: 74px;
    }

    .plan-feature-label strong {
        font-size: 11px;
    }

    .plan-feature-label small {
        font-size: 9px;
    }

    .plan-feature-services {
        gap: 3px;
    }

        .plan-feature-services span {
            width: 26px;
            height: 26px;
        }

        .plan-feature-services b {
            width: 23px;
            height: 23px;
        }

    .plan-details-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}



/* =========================================================
   PLAN ICONS
   ========================================================= */

.plan-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    background: #f5f9fc;
    color: #009ed6;
}

    .plan-feature-icon svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* Arrow in Full Details */

.plan-full-details-btn svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Additional service icons */

.plan-feature-services span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #dce7ef;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
}

.plan-feature-services svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Help */

.plan-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1px solid #b9c5d2;
    border-radius: 50%;
    color: #8a99aa;
    font-size: 9px;
    font-weight: 700;
    cursor: help;
}


/* Footer check */

.plan-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 3px;
    border-radius: 50%;
    background: #e9f8ef;
    color: #16a34a;
    font-size: 9px;
    font-weight: 700;
}
/* =========================================================
   PLAN DETAILS MODAL
   ========================================================= */

#planDetailsModal {
    z-index: 1050;
}

    #planDetailsModal .modal-dialog {
        width: calc(100% - 30px);
        max-width: 680px;
        margin: 30px auto;
    }

    #planDetailsModal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 20px 60px rgba(15, 23, 42, .20);
    }


    /* Header */

    #planDetailsModal .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        border-bottom: 1px solid #e5eaf0;
        background: #f8fafc;
    }

    #planDetailsModal .modal-title {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 600;
    }

    #planDetailsModal .modal-subtitle {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
    }


    /* Close */

    #planDetailsModal .close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 1px solid #e1e7ee;
        border-radius: 7px;
        background: #ffffff;
        color: #64748b;
        font-size: 22px;
        font-weight: 400;
        opacity: 1;
    }

        #planDetailsModal .close:hover {
            background: #f1f5f9;
            color: #1e293b;
        }


/* Body */

.plan-modal-body {
    padding: 22px 24px;
}


/* Sections */

.plan-modal-section {
    margin-bottom: 22px;
}

    .plan-modal-section:last-child {
        margin-bottom: 0;
    }

.plan-modal-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.modal-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eaf8fd;
    color: #009ed6;
    font-size: 10px;
    font-weight: 700;
}


/* Table */

.plan-modal-table {
    width: 100%;
    margin: 0;
    border: 1px solid #e3e9ef;
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .plan-modal-table tr:not(:last-child) td {
        border-bottom: 1px solid #edf1f5;
    }

    .plan-modal-table td {
        padding: 11px 14px;
        color: #475569;
        font-size: 12px;
        line-height: 1.5;
        vertical-align: top;
    }

        .plan-modal-table td:first-child {
            width: 36%;
            background: #fafbfc;
            color: #64748b;
            font-weight: 600;
        }

        .plan-modal-table td:last-child {
            color: #334155;
        }

    .plan-modal-table strong {
        color: #1e293b;
    }


/* Footer */

#planDetailsModal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5eaf0;
    background: #fafbfc;
}

    #planDetailsModal .modal-footer .btn {
        min-width: 85px;
        border-radius: 7px;
        font-size: 12px;
        border-color: darkgray;
    }


/* Mobile */

@media (max-width: 600px) {

    #planDetailsModal .modal-dialog {
        margin: 10px auto;
    }

    #planDetailsModal .modal-header,
    .plan-modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .plan-modal-table td {
        padding: 9px 10px;
    }

        .plan-modal-table td:first-child {
            width: 42%;
        }
}
/* =========================================================
   PLAN DETAILS MODAL - BOOTSTRAP STACKING
   ========================================================= */

#planDetailsModal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060 !important;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

    #planDetailsModal .modal-dialog {
        position: relative;
        z-index: 1061;
    }

.modal-backdrop {
    z-index: 1050 !important;
}

    .modal-backdrop.show {
        opacity: 0.45;
    }