/* Contact Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f8f0;
}

.contact-hero {
    background: linear-gradient(135deg, #063366 0%, #0056b3 100%);
    color: #fff;
    text-align: center;
    padding: 64px 0 40px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,214,0,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,214,0,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,214,0,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,214,0,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,214,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffd600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}
.contact-hero p {
    font-size: 1.15rem;
    font-weight: 400;
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.contact-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 40px 0 60px 0;
}

.contact-container {
    display: flex;
    gap: 40px;
    background: none;
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contact-form-section, .contact-details-section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(6,51,102,0.07);
    padding: 32px 28px 28px 28px;
    flex: 1 1 400px;
    min-width: 350px;
    max-width: 500px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(6,51,102,0.05);
}

.contact-form-section h2, .contact-details-section h2 {
    font-family: 'Playfair Display', serif;
    color: #063366;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.contact-form-section h2::after, .contact-details-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd600, #ffea70);
    border-radius: 2px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #063366;
    font-size: 1.05rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 2px solid #e3eafc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #f7f8fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #ffd600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
    background: #fff;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form button.btn {
    width: 100%;
    margin-top: 8px;
    font-size: 1.08rem;
    padding: 14px 0;
    background: linear-gradient(135deg, #063366 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(6, 51, 102, 0.2);
    min-height: 48px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-form button.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 51, 102, 0.3);
}

.contact-form button.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(6, 51, 102, 0.2);
}

.contact-details-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 450px;
}
.contact-details-section h2 {
    margin-bottom: 14px;
}
/* Contact details improvements */
.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    color: #222;
    font-size: 1.08rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e3eafc;
}
.contact-details-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    border: none;
    text-decoration: none;
    flex-wrap: wrap;
    padding: 8px 0;
}

.contact-details-list li:last-child {
    margin-bottom: 0;
}

.contact-details-list li i {
    color: #063366;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-link {
    color: #063366;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    transition: color 0.2s;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}
.contact-link:hover {
    color: #ffd600;
    text-decoration: underline;
}
.contact-details-section h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 18px;
    margin-bottom: 10px;
    color: #063366;
    font-size: 1.1rem;
    font-weight: 700;
}
.contact-map-placeholder {
    width: 100%;
    background: #e3eafc;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-top: 8px;
    padding: 0;
    height: 280px;
    position: relative;
    overflow: hidden;
    flex: 1;
}
.contact-map-iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 0;
    display: block;
}
.contact-map-placeholder small {
    display: block;
    text-align: center;
    margin-top: 8px;
    width: 100%;
    position: static;
}
.map-icon {
    font-size: 2.5rem;
    color: #b0b8c9;
}

/* Map and View Larger Map improvements */
.contact-map-placeholder {
    margin-bottom: 10px;
    margin-top: 8px;
    background: #e3eafc;
    border-radius: 10px;
    padding: 0;
    min-height: 120px;
    height: auto;
    max-height: 320px;
    overflow: hidden;
}
.contact-map-iframe {
    min-height: 120px;
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 0;
}
.contact-details-section small,
.contact-details-section .view-larger-map {
    display: block;
    text-align: center;
    margin: 12px 0 0 0;
    font-size: 0.98rem;
}
.contact-details-section .view-larger-map a,
.contact-details-section small a {
    color: #063366;
    text-decoration: underline;
    transition: color 0.2s;
}
.contact-details-section .view-larger-map a:hover,
.contact-details-section small a:hover {
    color: #ffd600;
}

/* Section separation and clarity */
.contact-form-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(6,51,102,0.07);
    padding-bottom: 40px;
}
.contact-form button.btn {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
    display: block;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        max-width: 100%;
        padding: 0 16px;
    }
    .contact-form-section, .contact-details-section {
        max-width: 100%;
        min-width: unset;
        min-height: auto;
        padding: 24px 20px;
        margin-bottom: 16px;
    }
    .contact-form-section h2, .contact-details-section h2 {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 20px;
    }
    .contact-form-section h2::after, .contact-details-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-main {
        padding: 20px 0 30px 0;
    }
    .contact-map-placeholder {
        height: 200px;
        min-height: 160px;
        margin-bottom: 16px;
    }
    .contact-map-iframe {
        height: 100%;
        min-height: 160px;
    }
    .contact-form button.btn {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
        z-index: 2;
        display: block;
    }
    .contact-details-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .contact-form-section {
        margin-bottom: 20px;
        padding-bottom: 24px;
    }
    .contact-details-section h3 {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 16px;
    }
}
@media (max-width: 600px) {
    .contact-hero {
        padding: 30px 0 20px 0;
    }
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    .contact-hero p {
        font-size: 1rem;
    }
    .contact-container {
        padding: 0 12px;
        gap: 16px;
    }
    .contact-form-section, .contact-details-section {
        padding: 20px 16px;
        min-height: auto;
        margin-bottom: 12px;
    }
    .contact-main {
        padding: 16px 0 24px 0;
    }
    .contact-form-section h2, .contact-details-section h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
        text-align: center;
    }
    .contact-form-section h2::after, .contact-details-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-map-placeholder {
        height: 180px;
        min-height: 120px;
        margin-bottom: 12px;
    }
    .contact-map-iframe {
        height: 100%;
        min-height: 120px;
    }
    .contact-form button.btn {
        font-size: 1.1rem;
        padding: 14px 0;
        margin-top: 18px;
        margin-bottom: 0;
        width: 100%;
        border-radius: 8px;
        position: relative;
        z-index: 2;
    }
    .contact-details-section {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    .contact-form-section {
        margin-bottom: 18px;
        padding-bottom: 32px;
    }
    .contact-map-placeholder {
        margin-bottom: 8px;
    }
    .contact-details-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }
    .contact-details-section h3 {
        text-align: center;
        margin-top: 16px;
        margin-bottom: 12px;
    }
    .view-larger-map {
        text-align: center;
        margin-top: 12px;
    }
}

/* Additional mobile improvements for contact page */
@media (max-width: 480px) {
    .contact-hero {
        padding: 25px 0 15px 0;
    }
    
    .contact-hero h1 {
        font-size: 1.6rem;
    }
    
    .contact-hero p {
        font-size: 0.95rem;
    }
    
    .contact-container {
        padding: 0 8px;
        gap: 12px;
    }
    
    .contact-form-section, .contact-details-section {
        padding: 16px 12px;
        margin-bottom: 8px;
    }
    
    .contact-form-section h2, .contact-details-section h2 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    
    .contact-form input, .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .contact-details-list li {
        font-size: 0.95rem;
        padding: 6px 0;
        gap: 8px;
    }
    
    .contact-map-placeholder {
        height: 160px;
        min-height: 100px;
        margin-bottom: 8px;
    }
    
    .contact-form-section, .contact-details-section {
        padding: 16px 12px 24px 12px;
        min-height: auto;
        margin-bottom: 12px;
    }
    
    .contact-main {
        padding: 8px 0 16px 0;
    }
    
    .contact-map-placeholder {
        height: 160px;
        min-height: 100px;
        margin-bottom: 12px;
    }
    
    .contact-map-iframe {
        height: 100%;
        min-height: 100px;
    }
    
    .contact-details-section h3 {
        margin-top: 12px;
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .view-larger-map {
        margin-top: 8px;
        font-size: 0.9rem;
    }
    
    .contact-form button.btn {
        font-size: 1rem;
        padding: 12px 0;
        margin-top: 16px;
        min-height: 44px;
    }
    
    .contact-form input, 
    .contact-form textarea {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    
    .contact-form label {
        font-size: 0.95rem;
    }
    
    .contact-details-list {
        font-size: 0.95rem;
    }
    
    .contact-details-list {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .contact-details-list li {
        margin-bottom: 12px;
        gap: 8px;
        padding: 6px 0;
    }
    
    .contact-details-list li i {
        flex-shrink: 0;
        margin-top: 2px;
        font-size: 1rem;
    }
    
    .contact-link {
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 4px 0;
    }
}

/* Ensure contact page sections are always visible on mobile */
@media (max-width: 700px) {
    .contact-container {
        padding: 0 4vw;
    }
    
    .contact-form-section, 
    .contact-details-section {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    
    .contact-map-placeholder {
        margin-bottom: 20px !important;
        min-height: 140px;
    }
    
    .contact-main {
        margin-bottom: 40px;
        padding-bottom: 32px;
    }
    
    /* Improve contact details layout for mobile */
    .contact-details-list li {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .contact-details-list li i {
        flex-shrink: 0;
        margin-top: 2px;
    }
    
    .contact-link {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
}

/* Ensure map and button are always visible and not cut off */
.contact-map-placeholder {
    min-height: 120px;
    height: auto;
    max-height: 320px;
    overflow: hidden;
}
.contact-map-iframe {
    min-height: 120px;
    height: 100%;
    width: 100%;
    display: block;
}

/* Fix map and footer overlap on contact page */
.contact-map-placeholder {
    margin-bottom: 18px !important;
    min-height: 160px;
    height: auto;
    max-height: 320px;
    overflow: hidden;
    background: #e3eafc;
    border-radius: 10px;
    padding: 0;
}
.contact-map-iframe {
    min-height: 160px;
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 0;
}
.contact-details-section small,
.contact-details-section .view-larger-map {
    display: block;
    text-align: center;
    margin: 16px 0 0 0;
    font-size: 0.98rem;
    position: relative;
    z-index: 2;
}

/* Add extra space above the footer for mobile and desktop */
@media (max-width: 900px) {
    .contact-details-section {
        margin-bottom: 32px;
        padding-bottom: 18px;
    }
    .contact-map-placeholder {
        margin-bottom: 24px !important;
    }
}
@media (max-width: 600px) {
    .contact-details-section {
        margin-bottom: 24px;
        padding-bottom: 10px;
    }
    .contact-map-placeholder {
        margin-bottom: 20px !important;
    }
}

/* Ensure footer never overlaps content */
footer, .footer-content, .footer-bottom {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Prevent map and link from being hidden by footer */
.contact-main {
    margin-bottom: 32px;
}

/* Divider between form and details */
.section-divider {
    width: 100%;
    height: 0;
    border-bottom: 2px dashed #e3eafc;
    margin: 24px 0 18px 0;
    opacity: 0.7;
}

.contact-form-section {
    margin-bottom: 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(6,51,102,0.07);
    padding-bottom: 40px;
}

.contact-details-section {
    background: #f8f9fa;
    box-shadow: 0 2px 12px rgba(6,51,102,0.04);
    border-radius: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.contact-main {
    margin-bottom: 48px;
    padding-bottom: 32px;
}
.contact-container {
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.contact-map-placeholder {
    margin-bottom: 24px !important;
    min-height: 160px;
    height: auto;
    max-height: 320px;
    overflow: hidden;
    background: #e3eafc;
    border-radius: 10px;
    padding: 0;
}
.contact-map-iframe {
    min-height: 160px;
    height: 100%;
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 0;
}
.contact-details-section small,
.contact-details-section .view-larger-map {
    display: block;
    text-align: center;
    margin: 18px 0 24px 0;
    font-size: 0.98rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .contact-details-section {
        margin-bottom: 32px;
        padding-bottom: 18px;
    }
    .contact-form-section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
    .contact-map-placeholder {
        margin-bottom: 32px !important;
    }
    .contact-main {
        margin-bottom: 56px;
        padding-bottom: 40px;
    }
    .contact-container {
        margin-bottom: 40px;
        padding-bottom: 32px;
    }
}
@media (max-width: 600px) {
    .contact-details-section {
        margin-bottom: 24px;
        padding-bottom: 10px;
    }
    .contact-form-section {
        margin-bottom: 24px;
        padding-bottom: 32px;
    }
    .contact-map-placeholder {
        margin-bottom: 28px !important;
    }
    .contact-main {
        margin-bottom: 64px;
        padding-bottom: 48px;
    }
    .contact-container {
        margin-bottom: 48px;
        padding-bottom: 40px;
    }
}

/* Responsive font sizes for headings and text */
.contact-hero h1 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
}
.contact-hero p, .contact-form label, .contact-details-list, .contact-link, .contact-details-section h3 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
.contact-details-section h2, .contact-form-section h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

/* Responsive buttons */
.btn, .contact-form button.btn {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  min-height: 44px;
  padding: 14px 24px;
  border-radius: 10px;
}
@media (max-width: 700px) {
  .btn, .contact-form button.btn {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Hero background improvements */
.contact-hero {
  background-size: cover !important;
  background-position: center !important;
  min-height: 120px;
  text-align: center;
  padding: 32px 10px 18px 10px;
}
@media (max-width: 700px) {
  .contact-hero {
    min-height: 80px;
    padding: 18px 4vw 10px 4vw;
  }
  .contact-hero h1 {
    font-size: clamp(1.1rem, 7vw, 2rem);
  }
  .contact-hero p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }
}

/* Section padding/margin for mobile */
@media (max-width: 700px) {
  .contact-main, .contact-container, .contact-form-section, .contact-details-section {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}

/* Prevent text overflow */
.contact-hero, .contact-main, .contact-container, .contact-form-section, .contact-details-section {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Ensure all section headings are centered on mobile */
@media (max-width: 700px) {
  h1, h2, h3, h4, h5, h6, .contact-hero h1, .contact-details-section h2, .contact-form-section h2 {
    text-align: center;
  }
  
  .contact-form-section h2::after, .contact-details-section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-hero {
    padding: 40px 0 24px 0;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .contact-hero p {
    font-size: 1rem;
    padding: 0 16px;
  }
}

/* Ensure nav links and buttons are touch-friendly */
@media (max-width: 700px) {
  .nav-links a, .btn, .contact-form button.btn {
    min-height: 48px;
    font-size: clamp(1rem, 3vw, 1.15rem);
    padding: 14px 18px;
  }
}

/* Professional loading state for contact form */
.contact-form button.btn.loading {
    position: relative;
    color: transparent;
}

.contact-form button.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Professional success/error states */
.contact-form.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.contact-form.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Professional focus states for mobile */
@media (max-width: 768px) {
    .contact-form input:focus, 
    .contact-form textarea:focus {
        box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.15);
        transform: scale(1.02);
    }
    
    .contact-form button.btn:active {
        transform: scale(0.98);
    }
}
