body {
    box-sizing: border-box;
}

* {
    font-family: 'Fredoka', sans-serif;
}

.app-wrapper {
    min-height: 100%;
    background: #222831;
}

.progress-bar {
    transition: width 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.field-item:nth-child(1) { animation-delay: 0.1s; }
.field-item:nth-child(2) { animation-delay: 0.2s; }
.field-item:nth-child(3) { animation-delay: 0.3s; }
.field-item:nth-child(4) { animation-delay: 0.4s; }
.field-item:nth-child(5) { animation-delay: 0.5s; }
.field-item:nth-child(6) { animation-delay: 0.6s; }
.field-item:nth-child(7) { animation-delay: 0.7s; }

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #948979;
    color: #222831;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

input, textarea, select, button {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input:hover, textarea:hover, select:hover {
    border-color: #DFD0B8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(223, 208, 184, 0.2);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #DFD0B8 !important;
    box-shadow: 0 0 0 4px rgba(223, 208, 184, 0.25);
    transform: translateY(-1px);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(34, 40, 49, 0.3);
    background-color: #1a1f26 !important;
}

/* Error state styling for invalid inputs */
.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

/* Error message styling */
.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.error-message.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
    grid-template-columns: 1fr !important;
    }

    #form-section {
    padding: 30px 20px !important;
    }

    h1 {
    font-size: 32px !important;
    }

    h2 {
    font-size: 26px !important;
    }

    .alternative-grid {
    grid-template-columns: 1fr !important;
    }
}
