/* Contact Page Styles - Template Format */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header */
.contact-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 0;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--mainclr);
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Left Column: Contact Information */
.contact-info-section {
    flex: 1;
    background: linear-gradient(135deg, var(--mainclr) 0%, #ff6b6b 40%, #c0392b 60%, var(--headerclr) 100%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact-details p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

/* Social Media Section */
.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: white;
}

/* Ensure contact detail links inherit color */
.contact-details a{
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.contact-details a:hover{
    color: #fff;
}

.social-link i {
    font-size: 1.2rem;
}

/* Right Column: Contact Form */
.contact-form-section {
    background: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mainclr);
    background: white;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

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

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--mainclr) 0%, #ff6b6b 50%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35);
}

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

.submit-btn i {
    font-size: 1.2rem;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    margin-bottom: 1rem;
}

.modal-header i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-btn {
    background: var(--mainclr);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loader i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--mainclr);
}

.loader p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 2rem 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-item {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
}
  