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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #f8fafc;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f093fb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Content Section */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Form Section */
.contact-form-section {
    position: relative;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.form-description {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

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

.form-label {
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #1a202c;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

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

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.info-text {
    color: #64748b;
    line-height: 1.6;
}

.info-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.info-link:hover {
    color: #764ba2;
}

.info-subtext {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Form Validation States */
.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: flex;
}

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

/* Loading State */
.submit-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Form should appear FIRST on mobile */
    .contact-form-section {
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-content {
        padding: 2.5rem 0;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .page-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .contact-content {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .contact-grid {
        gap: 1.5rem;
    }
    
    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .form-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .form-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        gap: 1.25rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    select.form-input {
        background-size: 18px;
        padding-right: 2.25rem;
    }
    
    .info-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .info-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .info-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .info-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .info-link {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .info-subtext {
        font-size: 0.85rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .success-message {
        padding: 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .success-message svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

@media (max-width: 360px) {
    .contact-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .contact-grid {
        gap: 1.25rem;
    }
    
    .form-card,
    .info-card {
        border-radius: 12px;
        padding: 1.25rem 1rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-description {
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 0.7rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .info-title {
        font-size: 1rem;
    }
    
    .info-text,
    .info-link {
        font-size: 0.875rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .form-input,
    .submit-btn {
        min-height: 48px;
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .info-card:active {
        transform: scale(0.98);
    }
}

/* Focus styles for accessibility */
.form-input:focus,
.submit-btn:focus,
.info-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

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

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card,
.info-card {
    animation: fadeInUp 0.6s ease forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }