﻿.dealer-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .dealer-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    }

    .dealer-card .company {
        border-left: 4px solid transparent;
        padding-left: 0.5rem;
    }

.phone-pill {
    background: linear-gradient( 90deg, rgba(185, 28, 28, 0.95), rgba(220, 38, 38, 0.95) );
    color: white;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}

.card-small {
    word-break: break-word;
}


.apply-card {
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .apply-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        border-color: rgba(248, 113, 113, 0.45);
    }

.section-title {
    border-right: 4px solid #dc2626;
    padding-right: 0.75rem;
}

.form-control {
    width: 100%;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .form-control:focus {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
        background: rgba(0, 0, 0, 0.65);
    }

    .form-control::placeholder {
        color: rgba(209, 213, 219, 0.72);
    }

.field-error {
    min-height: 1.15rem;
    display: block;
    margin-top: 0.35rem;
    color: #fca5a5;
    font-size: 0.75rem;
}

.has-error .form-control,
.has-error.service-group {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.service-chip input,
.radio-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-chip span,
.radio-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(17, 24, 39, 0.75);
    color: #d1d5db;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.service-chip input:checked + span,
.radio-chip input:checked + span {
    background: linear-gradient(90deg, rgba(185, 28, 28, 0.95), rgba(220, 38, 38, 0.95));
    color: #fff;
    border-color: rgba(248, 113, 113, 0.95);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.18);
}

.submit-pill {
    background: linear-gradient(90deg, rgba(185, 28, 28, 0.98), rgba(220, 38, 38, 0.98));
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

    .submit-pill:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* Real checkbox style */
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 46px;
    border-radius: 0.9rem;
    border: 1px solid rgba(248, 113, 113, 0.42);
    background: rgba(17, 24, 39, 0.72);
    color: #d1d5db;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

    .checkbox-card:hover {
        border-color: rgba(248, 113, 113, 0.8);
        background: rgba(31, 41, 55, 0.88);
    }

    .checkbox-card input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        border-radius: 0.3rem;
        border: 2px solid rgba(248, 113, 113, 0.8);
        background: #020617;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        position: relative;
        transition: all 0.15s ease;
    }

        .checkbox-card input[type="checkbox"]:checked {
            background: #dc2626;
            border-color: #ef4444;
        }

            .checkbox-card input[type="checkbox"]:checked::after {
                content: "";
                position: absolute;
                width: 5px;
                height: 10px;
                border: solid #fff;
                border-width: 0 2px 2px 0;
                top: 1px;
                left: 5px;
                transform: rotate(45deg);
            }

        .checkbox-card input[type="checkbox"]:focus {
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
        }

    .checkbox-card:has(input[type="checkbox"]:checked) {
        background: linear-gradient(90deg, rgba(127, 29, 29, 0.55), rgba(185, 28, 28, 0.45));
        border-color: rgba(248, 113, 113, 0.95);
        color: #fff;
    }

/* Custom Select - Light mode default */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-btn {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    color: #111827;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .custom-select-btn:hover {
        border-color: rgba(220, 38, 38, 0.45);
        background: #ffffff;
    }

.custom-select.open .custom-select-btn {
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.custom-select-text {
    color: #111827;
}

    .custom-select-text.is-placeholder {
        color: #9ca3af;
    }

.custom-select-icon {
    color: #dc2626;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.custom-select.open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    z-index: 40;
    padding: 0.45rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    display: none;
    max-height: 240px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.custom-select.open .custom-select-menu {
    display: block;
}

.custom-select-option {
    width: 100%;
    text-align: right;
    color: #374151;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .custom-select-option:hover {
        background: #fee2e2;
        color: #991b1b;
    }

    .custom-select-option.selected {
        background: linear-gradient(90deg, #b91c1c, #dc2626);
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(220, 38, 38, 0.18);
    }

    .custom-select-option + .custom-select-option {
        margin-top: 0.25rem;
    }

.custom-select-menu::-webkit-scrollbar {
    width: 7px;
}

.custom-select-menu::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 999px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.75);
    border-radius: 999px;
}

    .custom-select-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(185, 28, 28, 0.9);
    }

/* Dark mode */
.dark .custom-select-btn {
    border-color: rgba(248, 113, 113, 0.55);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(3, 7, 18, 0.92));
    color: #ffffff;
    box-shadow: none;
}

    .dark .custom-select-btn:hover {
        border-color: rgba(248, 113, 113, 0.85);
    }

.dark .custom-select.open .custom-select-btn {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(17, 24, 39, 1), rgba(3, 7, 18, 1));
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.dark .custom-select-text {
    color: #f9fafb;
}

    .dark .custom-select-text.is-placeholder {
        color: rgba(209, 213, 219, 0.72);
    }

.dark .custom-select-icon {
    color: #f87171;
}

.dark .custom-select-menu {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.dark .custom-select-option {
    color: #d1d5db;
}

    .dark .custom-select-option:hover {
        background: rgba(220, 38, 38, 0.18);
        color: #ffffff;
    }

    .dark .custom-select-option.selected {
        background: linear-gradient(90deg, rgba(185, 28, 28, 0.95), rgba(220, 38, 38, 0.95));
        color: #ffffff;
    }

.dark .custom-select-menu::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.7);
}

.dark .custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.8);
}
.native-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}
/* Apply page - light mode */
.agency-apply-page {
    color: #111827;
}

    .agency-apply-page .apply-card {
        background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.10), transparent 34%), linear-gradient(135deg, #ffffff, #f8fafc);
        border: 1px solid #e5e7eb;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    }

        .agency-apply-page .apply-card:hover {
            transform: translateY(-3px);
            border-color: rgba(248, 113, 113, 0.65);
            box-shadow: 0 22px 50px rgba(15, 23, 42, 0.13);
        }

    .agency-apply-page .section-title {
        color: #111827;
        border-right-color: #dc2626;
    }

    .agency-apply-page label {
        color: #374151;
    }

    .agency-apply-page .apply-card p {
        color: #6b7280;
    }

    .agency-apply-page .form-control {
        width: 100%;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #111827;
        border-radius: 0.75rem;
        padding: 0.75rem 0.9rem;
        outline: none;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

        .agency-apply-page .form-control:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
            background: #ffffff;
        }

        .agency-apply-page .form-control::placeholder {
            color: #9ca3af;
        }

    /* Manual/custom dropdown light mode */
    .agency-apply-page .custom-select-btn {
        border: 1px solid #e5e7eb;
        background: linear-gradient(135deg, #ffffff, #f9fafb);
        color: #111827;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    }

        .agency-apply-page .custom-select-btn:hover {
            border-color: rgba(220, 38, 38, 0.45);
            background: #ffffff;
        }

    .agency-apply-page .custom-select.open .custom-select-btn {
        border-color: #dc2626;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13), 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .agency-apply-page .custom-select-text {
        color: #111827;
    }

        .agency-apply-page .custom-select-text.is-placeholder {
            color: #9ca3af;
        }

    .agency-apply-page .custom-select-icon {
        color: #dc2626;
    }

    .agency-apply-page .custom-select-menu {
        border: 1px solid #e5e7eb;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(10px);
    }

    .agency-apply-page .custom-select-option {
        color: #374151;
    }

        .agency-apply-page .custom-select-option:hover {
            background: #fee2e2;
            color: #991b1b;
        }

        .agency-apply-page .custom-select-option.selected {
            background: linear-gradient(90deg, #b91c1c, #dc2626);
            color: #ffffff;
            box-shadow: 0 6px 14px rgba(220, 38, 38, 0.18);
        }

    /* Service box */
    .agency-apply-page .service-group {
        background: #ffffff;
        border-color: #fecaca;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

        .agency-apply-page .service-group > label {
            color: #374151;
        }

    /* Real checkbox light mode */
    .agency-apply-page .checkbox-card {
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #374151;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

        .agency-apply-page .checkbox-card:hover {
            border-color: #fca5a5;
            background: #fff7f7;
        }

        .agency-apply-page .checkbox-card input[type="checkbox"] {
            border-color: #f87171;
            background: #ffffff;
        }

            .agency-apply-page .checkbox-card input[type="checkbox"]:checked {
                background: #dc2626;
                border-color: #dc2626;
            }

        .agency-apply-page .checkbox-card:has(input[type="checkbox"]:checked) {
            background: linear-gradient(90deg, #fee2e2, #ffffff);
            border-color: #ef4444;
            color: #991b1b;
        }

    /* Radio chips light mode */
    .agency-apply-page .radio-chip span {
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #374151;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

        .agency-apply-page .radio-chip span:hover {
            border-color: #fca5a5;
            background: #fff7f7;
        }

    .agency-apply-page .radio-chip input:checked + span {
        background: linear-gradient(90deg, #b91c1c, #dc2626);
        color: #ffffff;
        border-color: #ef4444;
    }

    /* Errors/helpers */
    .agency-apply-page .field-error {
        color: #dc2626;
    }

    .agency-apply-page .text-gray-500 {
        color: #6b7280;
    }

    .agency-apply-page .text-gray-400 {
        color: #6b7280;
    }

    /* Submit button */
    .agency-apply-page .submit-pill {
        background: linear-gradient(90deg, #b91c1c, #dc2626);
        box-shadow: 0 10px 22px rgba(220, 38, 38, 0.20);
    }

/* Apply page - dark mode */
.dark .agency-apply-page {
    color: #f3f4f6;
}

    .dark .agency-apply-page .apply-card {
        background: linear-gradient(135deg, #1f2937, #111827);
        border-color: rgba(55, 65, 81, 0.7);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }

        .dark .agency-apply-page .apply-card:hover {
            border-color: rgba(248, 113, 113, 0.45);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        }

    .dark .agency-apply-page .section-title {
        color: #ffffff;
    }

    .dark .agency-apply-page label {
        color: #e5e7eb;
    }

    .dark .agency-apply-page .apply-card p {
        color: #9ca3af;
    }

    .dark .agency-apply-page .form-control {
        border-color: rgba(248, 113, 113, 0.55);
        background: rgba(0, 0, 0, 0.45);
        color: #ffffff;
        box-shadow: none;
    }

        .dark .agency-apply-page .form-control:focus {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
            background: rgba(0, 0, 0, 0.65);
        }

    .dark .agency-apply-page .custom-select-btn {
        border-color: rgba(248, 113, 113, 0.55);
        background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(3, 7, 18, 0.92));
        color: #ffffff;
        box-shadow: none;
    }

    .dark .agency-apply-page .custom-select.open .custom-select-btn {
        border-color: #ef4444;
        background: linear-gradient(135deg, rgba(17, 24, 39, 1), rgba(3, 7, 18, 1));
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    }

    .dark .agency-apply-page .custom-select-text {
        color: #f9fafb;
    }

        .dark .agency-apply-page .custom-select-text.is-placeholder {
            color: rgba(209, 213, 219, 0.72);
        }

    .dark .agency-apply-page .custom-select-icon {
        color: #f87171;
    }

    .dark .agency-apply-page .custom-select-menu {
        border-color: rgba(248, 113, 113, 0.45);
        background: rgba(17, 24, 39, 0.98);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .dark .agency-apply-page .custom-select-option {
        color: #d1d5db;
    }

        .dark .agency-apply-page .custom-select-option:hover {
            background: rgba(220, 38, 38, 0.18);
            color: #ffffff;
        }

    .dark .agency-apply-page .service-group {
        background: rgba(0, 0, 0, 0.20);
        border-color: rgba(248, 113, 113, 0.40);
        box-shadow: none;
    }

    .dark .agency-apply-page .checkbox-card {
        border-color: rgba(248, 113, 113, 0.42);
        background: rgba(17, 24, 39, 0.72);
        color: #d1d5db;
        box-shadow: none;
    }

        .dark .agency-apply-page .checkbox-card:hover {
            border-color: rgba(248, 113, 113, 0.8);
            background: rgba(31, 41, 55, 0.88);
        }

        .dark .agency-apply-page .checkbox-card input[type="checkbox"] {
            border-color: rgba(248, 113, 113, 0.8);
            background: #020617;
        }

        .dark .agency-apply-page .checkbox-card:has(input[type="checkbox"]:checked) {
            background: linear-gradient(90deg, rgba(127, 29, 29, 0.55), rgba(185, 28, 28, 0.45));
            border-color: rgba(248, 113, 113, 0.95);
            color: #ffffff;
        }

    .dark .agency-apply-page .radio-chip span {
        border-color: rgba(248, 113, 113, 0.45);
        background: rgba(17, 24, 39, 0.75);
        color: #d1d5db;
        box-shadow: none;
    }

    .dark .agency-apply-page .text-gray-500,
    .dark .agency-apply-page .text-gray-400 {
        color: #9ca3af;
    }