/* ==================== Material Symbols ==================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==================== Custom Select Arrow ==================== */
.form-select-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ==================== Step Transitions ==================== */
.step-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== Card Selection States ==================== */
.card-selectable.selected {
    border-color: #0553c7 !important;
    background-color: rgba(5, 83, 199, 0.05) !important;
}

.card-selectable.selected .card-check {
    display: inline-flex !important;
}

.card-selectable.selected .card-check-icon {
    color: #0553c7;
}

/* ==================== Validation Error States ==================== */
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==================== AI Loading Spinner ==================== */
.ai-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e2e8f0;
    border-top-color: #0553c7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Toast Notifications ==================== */
.toast {
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(16px); }
}

/* ==================== Regulatory Safety Button States ==================== */
[data-toggle-group="regulatorySafety"] button.selected-yes {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

[data-toggle-group="regulatorySafety"] button.selected-no {
    border-color: #0553c7 !important;
    color: #0553c7 !important;
    background-color: rgba(5, 83, 199, 0.05) !important;
}

/* ==================== Mobile Header ==================== */
#header-full {
    position: relative;
}

/* ==================== Responsive Fixes ==================== */
@media (max-width: 640px) {
    .step-section h1 {
        font-size: 1.75rem;
    }
}
