/* Import base styles from global.css */
@import url('global.css');

/* ========================================
   CONTACT PAGE SPECIFIC STYLES
   ======================================== */

/* Header Section */
.contact-header {
    padding: 4rem 1.5rem 2rem;
    background: linear-gradient(to bottom right, var(--blue-50), white, var(--blue-100));
    text-align: center;
}

.header-content {
    max-width: 4xl;
    margin: 0 auto;
}

.header-title {
    font-family: var(--font-inter);
    font-weight: 800;
    font-size: 3rem;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .header-title {
        font-size: 3.75rem;
    }
}

.header-subtitle {
    font-family: var(--font-inter);
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.6;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .header-subtitle {
        font-size: 1.25rem;
    }
}

/* Contact Methods Section */
.contact-methods {
    padding: 4rem 1.5rem;
    background-color: white;
}

.methods-grid {
    display: grid;
    gap: 2rem;
    max-width: 5xl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .methods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.method-card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--blue-200);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.method-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.method-icon {
    width: 3rem;
    height: 3rem;
    color: var(--blue-600);
    margin: 0 auto 1.5rem;
}

.method-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.method-description {
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.method-link {
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-link:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.3), white);
}

.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--blue-200);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 2rem;
    color: var(--slate-800);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.form-description {
    font-family: var(--font-inter);
    font-size: 1.125rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin: 0;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Error Banner Styles */
.error-banner {
    margin-bottom: 1rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: var(--destructive);
    font-family: var(--font-inter);
    font-size: 0.875rem;
    line-height: 1.5;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    font-family: var(--font-inter);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: white;
    border: 2px solid var(--slate-200);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--destructive);
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-400);
    opacity: 0.5;
}

.form-textarea {
    min-height: 120px;
}

/* Privacy Note */
.privacy-note {
    padding: 1rem;
    background-color: rgba(239, 246, 255, 0.5);
    border-radius: 0.5rem;
    border: 1px solid var(--blue-200);
}

.privacy-text {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin: 0;
}

/* Form Submit Button */
.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Alternative Contact Section */
.alternative-contact {
    padding: 4rem 1.5rem;
    background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.5), white, var(--blue-100));
}

.alt-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 2rem;
    color: var(--slate-800);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.alt-description {
    font-family: var(--font-inter);
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.alt-cta {
    display: flex;
    justify-content: center;
}

/* Success Modal Styles */
.success-content {
    text-align: center;
  padding: 1rem 0;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    color: var(--green-500);
    margin: 0 auto 1.5rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-message {
    font-family: var(--font-inter);
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* Animation Styles */
.method-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.method-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 640px) {
    .contact-header {
        padding: 3rem 1rem 1.5rem;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .contact-methods {
        padding: 3rem 1rem;
    }
    
    .method-card {
        padding: 1.5rem;
    }
    
    .contact-form-section {
        padding: 3rem 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-description {
        font-size: 1rem;
    }
    
    .alternative-contact {
        padding: 3rem 1rem;
    }
    
    .alt-title {
        font-size: 1.75rem;
    }
    
    .alt-description {
        font-size: 1rem;
    }
}

/* Focus states for accessibility */
.method-card:focus-within {
    outline: 2px solid var(--blue-600);
    outline-offset: 2px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    .contact-header,
    .contact-methods,
    .contact-form-section,
    .alternative-contact {
        padding: 1rem 0;
    }
    
    .method-card,
    .form-container {
        border: 1px solid #000;
        box-shadow: none;
        background: white !important;
    }
    
    .form-input,
    .form-textarea {
        border: 1px solid #000;
    }
}
