/* ==============================================
   INSTANT CLOSET TOTE STORAGE - MAIN STYLES
   ============================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #F8CF1F;
    --dark: #464847;
    --light: #FFFFFF;
    --text-light: #6b7280;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.hero h1,
.section-title,
.hero-form h3,
.flag strong,
.pricing-badge,
.contact-form-container h2,
.contact-info h2,
.contact-method h3 {
    font-family: 'Alfa Slab One', cursive;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Common Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    border: none;
}

.btn-primary:hover {
    background: #e6b81a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--dark);
    color: var(--light);
    border-color: var(--dark);
}

.btn-secondary:hover {
    background: #2d2e2d;
    color: var(--light);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #6b7280;
    border-radius: 10px;
    background: var(--light);
    font-family: inherit;
    transition: border-color 0.3s ease;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Only show validation states after user interaction */
.form-group input:not(:placeholder-shown):invalid,
.form-group input.user-interacted:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:not(:placeholder-shown):valid,
.form-group input.user-interacted:valid {
    border-color: #10b981;
}

.form-group input:focus:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:focus:valid,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(248, 207, 31, 0.1);
    outline: none;
}

/* Special styling for phone input - only after interaction */
.form-group input[type="tel"]:not(:placeholder-shown):valid,
.form-group input[type="tel"].user-interacted:valid {
    border-color: #10b981;
}

.form-group input[type="tel"]:not(:placeholder-shown):invalid,
.form-group input[type="tel"].user-interacted:invalid {
    border-color: #ef4444;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}
