/* Contact Form Styles */

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-title {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #8364e8;
    margin: 0 0 1rem 0;
    text-align: center;
}

.contact-description {
    font-family: "new-order", sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--dark-text);
    text-align: center;
    margin: 0 0 3rem 0;
    line-height: 1.6;
    opacity: 0.8;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(131, 100, 232, 0.1);
    border: 1px solid rgba(131, 100, 232, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: "filson-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-family: "new-order", sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--dark-text);
    background-color: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--warm-purple);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(131, 100, 232, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-family: "new-order", sans-serif;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "filson-pro", sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 18px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(131, 100, 232, 0.3);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(131, 100, 232, 0.2);
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(131, 100, 232, 0.3);
}

/* Responsive Design */

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
    .contact-container {
        max-width: 500px;
        padding: 1.5rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .contact-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .contact-description {
        font-size: clamp(15px, 2vw, 17px);
        margin-bottom: 2.5rem;
    }
}

/* Mobile phones */
@media screen and (max-width: 768px) {
    .contact-container {
        max-width: 100%;
        padding: 1rem 0;
    }
    
    .contact-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 0.75rem;
    }
    
    .contact-description {
        font-size: clamp(14px, 3vw, 16px);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.875rem 1rem;
        font-size: clamp(14px, 3vw, 16px);
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
        font-size: clamp(15px, 3vw, 17px);
    }
}

/* Very small mobile phones */
@media screen and (max-width: 320px) {
    .contact-form {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .contact-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    
    .contact-description {
        font-size: clamp(13px, 2.5vw, 15px);
        margin-bottom: 1.5rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem 0.875rem;
    }
    
    .submit-button {
        padding: 0.75rem 1.25rem;
        font-size: clamp(14px, 2.5vw, 16px);
    }
}

/* Accessibility Improvements */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input,
    .form-textarea {
        border-color: var(--dark-text);
    }
    
    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--warm-purple);
        box-shadow: 0 0 0 3px var(--warm-purple);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .form-input,
    .form-textarea,
    .submit-button {
        transition: none;
    }
    
    .submit-button:hover {
        transform: none;
    }
}

/* Focus visible for better keyboard navigation */
.form-input:focus-visible,
.form-textarea:focus-visible,
.submit-button:focus-visible {
    outline: 2px solid var(--warm-purple);
    outline-offset: 2px;
}

/* Form validation styles - only show after user interaction */
.form-input:invalid:not(:focus):not(:placeholder-shown):not(:empty),
.form-textarea:invalid:not(:focus):not(:placeholder-shown):not(:empty) {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input:valid:not(:focus):not(:placeholder-shown):not(:empty),
.form-textarea:valid:not(:focus):not(:placeholder-shown):not(:empty) {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Show validation colors only after user has touched the field */
.form-input.touched.invalid,
.form-textarea.touched.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.touched.valid,
.form-textarea.touched.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Loading state for submit button */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    animation: slideInDown 0.5s ease-out;
}

.success-content h3 {
    font-family: "filson-pro", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 1rem 0;
    color: white;
}

.success-content p {
    font-family: "new-order", sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2.5vw, 18px);
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

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

/* Responsive success message */
@media screen and (max-width: 768px) {
    .success-message {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .success-content h3 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    
    .success-content p {
        font-size: clamp(14px, 3vw, 16px);
    }
}
