/* =========================
   Contact Page Styles
   ========================= */

.page-hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), var(--bg-image) center/cover no-repeat;
    background-attachment: fixed;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    border-radius: 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    z-index: 2;
    position: relative;
}

.page-hero .eyebrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    margin: 0 0 20px;
}

.page-hero .sub {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Flush layout */
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 80px;
}

.contact-info-panel {
    background: #0b3f26;
    /* Dark Green */
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
}

.contact-info-panel p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #fff;
}

.contact-block {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 8px;
    color: #fff;
}

.contact-value {
    font-size: 18px;
    display: block;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
}

.contact-form-panel {
    background: #fff;
    padding: 60px;
}

.contact-form {
    display: grid;
    gap: 20px;
    /* Increased gap for better spacing */
}

/* Enhanced Floating Field Styling */
.floating-field {
    position: relative;
    margin-bottom: 0;
}

.floating-field input,
.floating-field textarea {
    width: 100%;
    padding: 16px 20px;
    /* More spacious padding */
    border: 1px solid #e0e6e1;
    border-radius: 16px;
    /* Softer corners */
    font-size: 16px;
    background: #fcfdfc;
    /* Very subtle off-white background */
    transition: all 0.25s ease;
    font-family: inherit;
    color: var(--ink);
    resize: vertical;
}

/* Focus State */
.floating-field input:focus,
.floating-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 106, 60, 0.08);
    /* Soft ring on focus */
}

/* Floating Label Styling */
.floating-field label {
    position: absolute;
    left: 20px;
    top: 18px;
    /* Centered vertically with input padding */
    color: var(--muted);
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
    padding: 0 4px;
    font-size: 15px;
    font-weight: 500;
}

/* Active/Filled State for Label */
.floating-field input:focus~label,
.floating-field input:not(:placeholder-shown)~label,
.floating-field textarea:focus~label,
.floating-field textarea:not(:placeholder-shown)~label {
    top: -9px;
    left: 16px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    background: #fff;
    /* Match container bg to hide line */
    padding: 0 6px;
    border-radius: 4px;
}

/* Button Margin */
.submit-btn-margin {
    margin-top: 12px;
}

/* Map Section */
.map-section {
    max-width: 1400px;
    margin: 0 auto 60px;
}

.map-frame {
    height: 450px;
    border-radius: 24px;
    width: 100%;
    border: none;
    box-shadow: var(--shadow);
}

/* Responsive Media Queries */
@media (max-width: 980px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px;
    }

    .page-hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 100px 20px 60px;
    }

    .page-hero h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    /* Layout Unification */
    .contact-container {
        border-radius: 20px;
        margin-bottom: 60px;
    }

    .contact-info-panel {
        padding: 32px 24px;
        text-align: center;
        /* Center align info on mobile */
    }

    .contact-form-panel {
        padding: 32px 24px;
    }

    .contact-info-panel h3 {
        font-size: 28px;
    }

    .floating-field input,
    .floating-field textarea {
        padding: 14px 16px;
    }

    /* Map */
    .map-frame {
        height: 300px;
        border-radius: 20px;
    }

    .map-section {
        margin-bottom: 20px;
    }
}


/* =========================
   Contact Form Messages
   ========================= */
.contact-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  animation: msgSlideIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.contact-msg.fade-out {
  animation: msgFadeOut 0.3s ease forwards;
}

.contact-msg.success {
  background: rgba(11, 106, 60, 0.08);
  color: #0b6a3c;
  border: 1.5px solid rgba(11, 106, 60, 0.2);
}

.contact-msg.error {
  background: rgba(217, 48, 37, 0.06);
  color: #d93025;
  border: 1.5px solid rgba(217, 48, 37, 0.18);
}

.contact-msg-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-msg.success .contact-msg-icon {
  background: rgba(11, 106, 60, 0.12);
}

.contact-msg.error .contact-msg-icon {
  background: rgba(217, 48, 37, 0.1);
}

.contact-msg-text {
  flex: 1;
  line-height: 1.4;
}

.contact-msg-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 0 4px;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.contact-msg-close:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Disabled submit state */
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes msgFadeOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}