/* Contact Form Stylesheet - Overhaul for Contact Page Only */

/* ========================================
   ALPHABETICAL ORGANIZATION
   ======================================== */

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

html, body {
    height: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Page Container */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* Reduced padding to remove white gap */
    position: relative;
}

/* Header Section */
.header-section {
    height: 30vh; /* Increased height for better visibility */
    min-height: 200px; /* Minimum height to ensure visibility */
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ff6b35 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    margin-bottom: 2rem; /* Add space between header and form */
    position: relative;
    z-index: 5; /* Ensure header is above other elements */
}

.header-section h1 {
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.header-section p {
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 600px;
    opacity: 0.95;
}

/* Middle Section - Main Content Area */
.middle-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 50vh; /* Ensure proper height */
    position: relative;
    z-index: 1;
    margin: 2rem 0; /* Add margin for spacing */
}

/* Contact Form Container */
.contact-form-wrapper {
    width: 33%;
    min-width: 350px; /* Minimum width for very small screens */
    max-width: 500px; /* Maximum width for large screens */
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 3px solid #ff6b35;
    position: relative;
    z-index: 2; /* Ensure form is above other elements */
}

.contact-form-wrapper::before {
    content: 'Quick Contact';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 3;
}

.contact-form-wrapper h2 {
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* Footer Section */
.footer-section {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section .col-md-4 {
    flex: 1;
    min-width: 250px;
}

.footer-section h5 {
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.footer-section p,
.footer-section address {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-section .text-center p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background-color: #ff6b35 !important;
    padding: 0.5rem 1rem !important;
    min-height: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    max-width: 500px; /* Further reduced container width for just 3 items */
}

.navbar-brand .logo-placeholder {
    background-color: #fff;
    color: #ff6b35;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background-color: white;
}

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

/* Submit Button */
#submitBtn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-top: 1rem;
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

#submitBtn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Styling */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: bold;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.message.hidden {
    display: none;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.recaptcha-badge {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.recaptcha-badge a {
    color: #ff6b35;
    text-decoration: none;
}

.recaptcha-badge a:hover {
    text-decoration: underline;
}

/* Rate Limit Info */
.rate-limit-info {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.rate-limit-info.hidden {
    display: none;
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6b35;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-nav:focus {
    top: 0;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .contact-form-wrapper {
        width: 40%;
    }
}

@media (max-width: 992px) {
    .contact-form-wrapper {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .header-section p {
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        width: 65%;
        padding: 2rem;
    }
    
    .footer-section .row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .header-section {
        min-height: 150px;
        height: auto;
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        width: 90%;
        min-width: unset;
        padding: 1.5rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .middle-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}