/* =========================================
   Modern Forms UI - Custom Overrides
   Focus: Apple/Google "Dominant Design"
   ========================================= */

/* --- UTILITIES --- */
.no-print {
    @media print {
        display: none !important;
    }
}

/* RTL / Farsi Font Override */
:root[dir="rtl"],
:root[lang="fa"],
[dir="rtl"],
[lang="fa"] {
    font-family: 'Vazirmatn', 'Inter', sans-serif !important;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-enter {
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    /* Apple-like ease */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* --- STICKY APP BAR (Apple-like Blur) --- */
.app-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* --- PROGRESS BAR --- */
.modern-progress-track {
    width: 100%;
    height: 3px;
    background-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.modern-progress-fill {
    height: 100%;
    background-color: #dc2626;
    /* Brand-600 logic */
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- TOAST --- */
.toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: rgba(30, 30, 30, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    /* Pill */
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeUp 0.3s forwards;
}

/* --- CUSTOM INPUT STYLES (If needed beyond Tailwind) --- */
/* Custom Radio/Checkbox checks */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #dc2626;
}

/* Signature Canvas */
.signature-canvas {
    touch-action: none;
    /* Prevent scrolling while signing */
}

.btn-rating-active {
    background-color: #dc2626;
    /* brand-600 */
    color: white;
    border-color: #dc2626;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    opacity: 0;
    animation: popIn 0.3s 0.1s forwards;
    text-align: center;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes popIn {
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}