@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.contact-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: relative;
}

/* Header */
.header {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Contact Card */
.contact-card {
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.contact-content {
    padding: 1.75rem 2rem;
}

/* Title */
.contact-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

/* Form */
.contact-form {
    margin-bottom: 1rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.375rem;
}

.required {
    color: #e53e3e;
    margin-right: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
}

.form-textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #2d3748;
    background: white;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
}

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

.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: #e53e3e;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #e53e3e;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 224, 94, 0.3);
}

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

/* Language Selector */
.language-selector {
    text-align: center;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.globe-icon {
    color: #718096;
}

.arrow-icon {
    color: #a0aec0;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 2rem;
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-backdrop.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.modal-text {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 640px) {
    .contact-container {
        padding: 0.25rem;
    }
    
    .header {
        margin-bottom: 1.5rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .contact-content {
        padding: 1.5rem 1.5rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.5rem 0.875rem;
    }
    
    .submit-btn {
        padding: 0.625rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 1.25rem 1rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .contact-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .submit-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-text {
        font-size: 0.8rem;
    }
}

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

.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

.header {
    animation: fadeInUp 0.6s ease-out 0.1s both;
} 