/* ========================================
   DEBT CONSOLIDATION DROPDOWN STYLES
   Matching National Debt Relief Design
   ======================================== */

/* Form Container */
.consultation-form {
    background-color: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.consultation-form h2 {
    font-size: 30px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Benefits List Styling */
.debt-list {
    max-width: 420px;
    margin: 0 auto;
}

.debt-list li {
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
}

.debt-list li:last-child {
    margin-bottom: 0;
}

.debt-list i.fa-check {
    color: #63E6BE;
    font-size: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(99, 230, 190, 0.5));
}

.debt-list span {
    font-size: 18px;
    font-weight: 500;
    color: #344054;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* Form Label */
.form-label {
    color: #667085;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Dropdown Wrapper */
.dropdown-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Main Dropdown Styling */
.debt-dropdown {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 16px;
    color: #667085;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(208, 213, 221, 0.6);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Custom dropdown arrow using SVG */
.debt-dropdown {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27%3e%3cpath d=%27M6 9L12 15L18 9%27 stroke=%27%23667085%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
}

/* Hover State */
.debt-dropdown:hover {
    border-color: #98A2B3;
}

/* Focus State */
.debt-dropdown:focus {
    outline: none;
    border-color: #1570EF;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.1);
}

/* When value is selected, change color to dark */
.debt-dropdown:not([value=""]) {
    color: #344054;
}

.debt-dropdown option:checked {
    color: #344054;
}

/* Option Styling */
.debt-dropdown option {
    padding: 12px;
    color: #344054;
    font-size: 16px;
    background-color: #ffffff;
}

.debt-dropdown option:first-child {
    color: #667085;
}

.debt-dropdown option:hover {
    background-color: #F9FAFB;
}

/* Invalid/Validation State */
.debt-dropdown.is-invalid {
    border-color: #DC2626;
}

.debt-dropdown.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.invalid-feedback {
    display: none;
    color: #DC2626;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

.debt-dropdown.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Submit Button Styling */
#apply-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background-color: #1570EF;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    cursor: pointer;
}

#apply-btn:hover {
    background-color: #0B5DD1;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(21, 112, 239, 0.1);
    transform: translateY(-1px);
}

#apply-btn:active {
    transform: translateY(0);
    background-color: #0A4FB8;
}

#apply-btn:focus {
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px rgba(21, 112, 239, 0.2);
}

/* Disabled state */
#apply-btn:disabled {
    background-color: #D0D5DD;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
    .consultation-form h2 {
        font-size: 28px;
    }

    .debt-list span {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .consultation-form {
        margin-top: 0 !important;
    }

    .consultation-form h2 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .debt-dropdown {
        padding-right: 40px;
        font-size: 15px;
    }

    .consultation-form h2 {
        font-size: 24px;
    }

    .debt-list span {
        font-size: 15px;
    }

    .debt-list i.fa-check {
        font-size: 18px;
    }

    #apply-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ========================================
   BROWSER-SPECIFIC FIXES
   ======================================== */

/* Firefox */
@-moz-document url-prefix() {
    .debt-dropdown {
        padding-right: 40px;
    }
}

/* Safari */
@supports (-webkit-appearance: none) {
    .debt-dropdown::-webkit-calendar-picker-indicator {
        display: none;
    }
}

/* IE11 fallback (if needed) */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .debt-dropdown {
        padding-right: 35px;
    }
}