/* Contact Page CSS */
/* Import Google Fonts - Same as other pages */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
.contact-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FULL WIDTH OVERRIDE - Same as other pages */
.contact-page {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force all sections to take full width */
.contact-page section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Container styles - Consistent padding */
.contact-page .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Typography - Same fonts as other pages */
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4 {
    font-family: 'Lora', serif;
}

.contact-page p,
.contact-page span,
.contact-page div {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)), url('https://demo.bharatvillaprojects.com/wp-content/uploads/2025/07/business-partners-handshake-global-corporate-with-technology-concept-scaled.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-text h1 {
    font-family: 'Lora', serif;
    font-size: 4.5rem;
    font-weight: 300;
    color: white;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Background - Legacy support */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    z-index: 2;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Contact Section */
.main-contact-section {
    background: #f8f9fa !important;
    padding: 80px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    min-height: 700px;
    background: white;
}

/* Contact Information Panel */
.contact-info-panel {
    background: linear-gradient(135deg, #125849, #1a7a62);
    color: white;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.info-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-content h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.info-content > p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
}

.contact-value:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Branch Offices */
.branch-offices {
    margin-bottom: 40px;
}

.branch-offices h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.branch-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.branch-item {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.branch-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.branch-item strong {
    color: white;
    font-weight: 500;
}

/* ============ ENHANCED FORM SECTION ============ */

/* Contact Form Panel */
.contact-form-panel {
    padding: 60px 50px;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form Header */
.form-header {
    margin-bottom: 40px !important;
}

.form-header h2 {
    font-family: 'Lora', serif !important;
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    color: #125849 !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.form-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: none;
    margin-top: 15px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Input Styles */
.form-control {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfc;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #125849;
    background: white;
    box-shadow: 0 0 0 3px rgba(18, 88, 73, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Select Dropdown */
.form-select {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfc;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.form-select:focus {
    border-color: #125849;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(18, 88, 73, 0.1);
    transform: translateY(-1px);
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfc;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: #125849;
    background: white;
    box-shadow: 0 0 0 3px rgba(18, 88, 73, 0.1);
    transform: translateY(-1px);
}

.form-textarea::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #125849, #1a7a62);
    color: white;
    border: none;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(18, 88, 73, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    margin-top: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(18, 88, 73, 0.4);
    background: linear-gradient(135deg, #0f4a3c, #167055);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(18, 88, 73, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Form Validation */
.form-control.error,
.form-select.error,
.form-textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Success State */
.form-control.success,
.form-select.success,
.form-textarea.success {
    border-color: #27ae60;
    background-color: #f2fdf6;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Large Desktop */
@media (max-width: 1400px) {
    .contact-page .container {
        padding: 0 30px !important;
    }
    
    .contact-wrapper {
        margin: 0 20px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3.8rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 50px 40px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 45% 55%;
        margin: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 30px;
    }
    
    .info-content h2,
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .contact-page .container {
        padding: 0 20px !important;
    }
    
    .main-contact-section {
        padding: 60px 0 !important;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        margin: 0 10px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    
    .hero-subheading {
        font-size: 1.1rem;
    }
    
    .contact-info-panel {
        padding: 40px 30px 30px;
        order: 2;
    }
    
    .contact-form-panel {
        padding: 40px 30px;
        order: 1;
    }
    
    .info-content h2,
    .form-header h2 {
        font-size: 1.6rem !important;
        padding: 0px 3px 0px 3px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .branch-offices {
        margin-bottom: 30px;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .contact-page .container {
        padding: 0 15px !important;
    }
    
    .contact-hero {
        height: 50vh;
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subheading {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .contact-wrapper {
        border-radius: 15px;
        margin: 0 5px;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 30px 20px;
    }
    
    .info-content h2,
    .form-header h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .form-header {
        margin-bottom: 30px;
    }
    
    .form-header h2{
        font-size: 1.6rem !important;
        padding: 0px 3px 0px 3px !important;
    }
    
    .form-control,
    .form-select,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-select {
        padding-right: 40px;
        background-size: 14px;
        background-position: right 15px center;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
    }
    
    .contact-item:hover {
        transform: translateX(5px);
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .contact-value {
        font-size: 0.7rem;
    }
    
    .branch-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }
    
        .form-header h2 {
            font-size: 1.6rem !important;
            padding: 0px 3px 0px 3px !important;
    }

    
    .contact-info-panel,
    .contact-form-panel {
        padding: 25px 15px;
    }
    
    .info-content h2,
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-control,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
}

/* ============ ACCESSIBILITY & PERFORMANCE ============ */

/* Focus Management */
.form-control:focus,
.form-select:focus,
.form-textarea:focus,
.submit-btn:focus {
    outline: 2px solid #125849;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .contact-item,
    .branch-item,
    .form-control,
    .form-select,
    .form-textarea,
    .submit-btn {
        transition: none;
    }
    
    .contact-item:hover,
    .branch-item:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
    
    .submit-btn::before {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-control,
    .form-select,
    .form-textarea {
        border-color: #000;
        background: white;
    }
    
    .form-control:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    .contact-hero {
        background: white;
        color: black;
    }
    
    .hero-text h1 {
        color: black;
    }
    
    .contact-info-panel {
        background: white;
        color: black;
    }
    
    .submit-btn {
        background: white;
        border: 2px solid black;
        color: black;
    }
}