/* Contact Section Styles */
.contact {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-purple);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-container {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-form-container.in-view {
    opacity: 1;
    transform: translateX(0);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #e0e0e0;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-purple), #8B5FBF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7A4FAD);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
}

/* Success Message */
.form-success {
    display: none;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
    animation: slideInUp 0.5s ease;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: white;
}

.form-success p {
    margin: 0;
    font-weight: 500;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info */
.contact-info {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.contact-info.in-view {
    opacity: 1;
    transform: translateX(0);
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), #8B5FBF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-text a,
.contact-text p {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-purple);
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    opacity: 0.7;
}

.map-placeholder p {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.map-placeholder small {
    font-size: 0.85rem;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form,
    .info-card {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .contact-content {
        padding: 0 20px;
    }
    
    .contact-form,
    .info-card {
        padding: 25px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-form,
    .info-card {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-form-container,
    .contact-info {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
    
    .contact-item:hover .contact-icon {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}