/* ===================================
   CONTACT US PAGE STYLES
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e6fbff 0%, #f0f8ff 100%) !important;
    min-height: 100vh;
}

h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
h1::after {
    content: "";
    display: block;
    height: 5px;
    width: 100%;
    margin: 0 auto;
    border-radius: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #f59e0b 100%);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    margin-top: 80px; /* Account for fixed header */
    padding: 2rem 0;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    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;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   CONTACT INFO SECTION
   =================================== */
.contact-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(45deg, #f8f9ff, #fff);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.2rem;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.info-content p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.info-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.info-content a:hover {
    color: #764ba2;
}

/* ===================================
   BRANCHES SECTION
   =================================== */
.branches-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.branch-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.branch-map {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branch-address,
.branch-phone {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.branch-address:hover,
.branch-phone:hover {
    background: rgba(102, 126, 234, 0.1);
}

.branch-address i,
.branch-phone i {
    color: #667eea;
    font-size: 1.1rem;
}

.branch-phone a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.branch-phone a:hover {
    color: #764ba2;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form,
.contact-info,
.branch-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-info {
    animation-delay: 0.2s;
}

.branch-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}
/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .contact-grid {
        gap: 5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .branches-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .info-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .branches-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .branch-card {
        padding: 1.5rem;
    }
    
    .branch-card h3 {
        font-size: 1.3rem;
    }
    
    .branch-map {
        margin-bottom: 1rem;
    }
    
    .branch-address,
    .branch-phone {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.2rem;
    }
    
    .contact-form h2,
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .info-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .info-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .branches-section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .branch-card {
        padding: 1.2rem;
    }
    
    .branch-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .branch-address,
    .branch-phone {
        font-size: 0.85rem;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .branch-address i,
    .branch-phone i {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .contact-form,
    .contact-info,
    .branch-card {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .branch-address,
    .branch-phone {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .branches-section {
        padding: 2.5rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .info-icon,
    .branch-address i,
    .branch-phone i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .contact-form:hover,
    .contact-info:hover,
    .branch-card:hover,
    .info-item:hover,
    .submit-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .contact-form,
    .contact-info,
    .branch-card {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .submit-btn {
        display: none;
    }
    
    .branch-map {
        display: none;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}