/* --- Fonts & Core --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed; /* Keeps pattern steady while scrolling */
    color: #1f2937; /* text-gray-800 */
}

/* --- Utility Classes --- */

/* 1. Dot Pattern Utility */
.bg-dot-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 2. Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-gradient-btn {
    background: linear-gradient(-45deg, #4f46e5, #6366f1, #818cf8, #a5b4fc);
    background-size: 400% 400%;
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.fade-in-section.is-visible .highlight-text::after {
    content: '';
    position: absolute;
    display: block;
    width: 0%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M 2 8 C 20 4, 40 10, 60 6 S 80 0, 98 4' stroke='%234f46e5' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    bottom: -5px;
    left: 0;
    animation: draw-scribble 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s 1 forwards;
}

@keyframes draw-scribble {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* --- Form Specific Styles --- */

.form-section {
    background-color: #ffffff; 
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-input, .form-textarea, .form-file {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-file:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px #c7d2fe;
    outline: none;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px #fecaca !important;
    animation: shake 0.5s;
}

.form-checkbox-label, .form-radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-checkbox, .form-radio {
    margin-right: 0.75rem;
    height: 1.25rem;
    width: 1.25rem;
    border: 1px solid #9ca3af;
    flex-shrink: 0;
}

.form-checkbox { border-radius: 0.25rem; }
.form-radio { border-radius: 9999px; }

.form-radio:checked, .form-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.radio-group-error .form-radio-label, 
.radio-group-error .form-checkbox-label {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}