/* contact.css - Enhanced styles for modern contact page */

/* Main Content Layout */
.main-content {
    padding: 0;
    min-height: calc(100vh - 140px);
}

.contact-content {
    width: 90%; /* Responsive width */
    max-width: 1200px; /* Limit overall width */
    margin: 40px auto; /* Center content with margin */
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2rem; /* Consistent padding */
    box-sizing: border-box;
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #5dade2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.5px;
    color: #f0f0f0;
    font-weight: 400;
    margin-bottom: 0;
    user-select: none;

    position: relative;
    z-index: 1;
   
 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    margin-top: 0;
    padding: 0 1rem;
    box-sizing: border-box;

        

}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Adjust container padding for better responsiveness */
    box-sizing: border-box;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Use auto-fit for flexible columns */
    gap: 2rem; /* Reduce gap for better spacing */
    align-items: start;
}

/* Contact Information */
.contact-info h2 {
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-items {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-content h3 {
    color: #1e3c72;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-weight: 500;
}

.info-content small {
    color: #666;
    font-size: 0.9rem;
}

.info-content a {
    color: #4f6ef7;
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

/* Help Topics */
.help-topics {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.help-topics h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.help-topics ul {
    list-style: none;
    padding: 0;
}

.help-topics li {
    padding: 0.75rem 0;
    color: #555;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.help-topics li:last-child {
    border-bottom: none;
}

.styled-list {
    list-style: none;
    padding: 0;
}
.styled-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #475569;
}
.styled-list li i {
    color: #10b981;
    font-size: 0.9rem;
}
.section-title {
    font-size: 2.2rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4f6ef7;
    margin-top: 2rem; /* Add margin to separate from contact info */
}

.contact-form-section h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-form-section > p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Form Elements */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: #fafbfc;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
    background: white;
    transform: translateY(-2px);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Submit Button */
.contact-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4f6ef7, #6ac1ff);
    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;
    margin-bottom: 1rem;
}

.contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #3e5cd8, #5ab0ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 110, 247, 0.3);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

.contact-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-info-section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        gap: 2rem;
    }
    .contact-content {
        margin: 20px auto; /* Adjust margin for smaller screens */
        width: 95%; /* Take up more width on small screens */
        padding: 1.5rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .help-topics {
        padding: 1.5rem;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-form button[type="submit"] {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .info-content h3 {
        margin-top: 0.5rem; /* Add space between icon and title */
    }
    
    .help-topics {
        padding: 1rem;
    }
}
