/* ==========================================================
   INVICTUS WELLNESS — CONTACT PAGE THEME (FINAL CLEAN BUILD)
   ========================================================== */

/* -------- Color Variables -------- */
:root {
    --brown:#A05222;
    --beige:#F8F4F1;
    --dark-brown:#411E06;
    --btn-green:#3F7652;
    --ink:#1b1b1b;
    --muted:#555;
    --radius:16px;
    --maxw:1100px;
  }
  
  /* ==========================================================
     PAGE BACKGROUND
     ========================================================== */
  .contact-section {
    background: var(--beige) url("../images/texture1.jpg") center/cover no-repeat;
    background-attachment: fixed;
    padding: 5rem 1rem 6rem;
    display: flex;
    justify-content: center;
  }
  
  
  /* ==========================================================
     MAIN CARD WRAPPER
     ========================================================== */
  #contact-form-wrap {
    display: flex;
    position: relative;
    max-width: var(--maxw);
    width: 100%;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(65,30,6,0.14);
  
    box-shadow:
      0 20px 40px rgba(0,0,0,0.08),
      0 6px 15px rgba(0,0,0,0.05);
  
    overflow: hidden;
  
    opacity: 0;
    transform: translateY(35px);
    animation: fadeInUp 1.1s ease forwards;
  }
  
  /* Fade-in animation */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  
  /* ---- Gradient Accent Strip ---- */
  #contact-form-wrap::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 10px;
    background: linear-gradient(to bottom, var(--btn-green), var(--brown));
  }
  
  
  /* ---- Light Spotlight (Now subtle & clean) ---- */
  #contact-form-wrap::after {
    content: "";
    position: absolute;
    inset: -50px;
    background: radial-gradient(
      ellipse at top,
      rgba(63,118,82,0.02),
      transparent 80%
    );
    pointer-events: none;
    z-index: 0;
  }
  
/* Proper header layout */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

/* Logo click area */
.logo-link {
  display: inline-block;
  text-align: center;
}

/* Logo image sizing */
.logo-img {
  width: 180px;
  display: block;
}

/* Subtle Return Home text */
.logo-note {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #333;
  opacity: 0.8;
  font-family: "Cinzel", serif;
}

/* Optional attention on hover */
.logo-link:hover + .logo-note {
  opacity: 1;
}

  
  /* ==========================================================
     PHOTO PANEL (LEFT)
     ========================================================== */
  .contact-photo-panel {
    flex: 0 0 38%;
    min-height: 400px;                     /* Fixes invisible image collapse */
    background: var(--dark-brown);
    border-left: 6px solid var(--btn-green);
    display: flex;
    align-items: stretch;
  }
  
  .contact-photo-panel img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    filter: brightness(.90) contrast(1.05);
  }
  
  /* =========================
   LEFT SIDEBAR PANEL
   ========================= */

.contact-side-panel {
  flex: 0 0 32%;
  background: var(--dark-brown, #411E06);
  padding: 2.5rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-inner {
  text-align: center;
  max-width: 260px;
}

.panel-photo {
  width: 85%;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.panel-welcome {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: #fff;
}

.panel-message {
  font-size: .95rem;
  line-height: 1.6;
  color: #f8f4f1;
  margin-bottom: 1.2rem;
}

.panel-signature {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  font-style: italic;
}

/* Mobile stacking */
@media (max-width: 900px) {
  .contact-side-panel {
      flex: 100%;
      width: 100%;
      padding: 2rem;
      border-bottom: 6px solid var(--btn-green, #3F7652);
  }
  .panel-photo {
      width: 160px;
  }
}

  /* ==========================================================
     FORM SIDE (RIGHT)
     ========================================================== */
  .contact-content {
    flex: 1;
    position: relative;
    background: #fff;
    z-index: 1;
  }
  
  
  /* -------- HEADER BAR -------- */
  .contact-header-bar {
    background: var(--dark-brown);
    padding: 2.4rem 2.8rem;
    text-align: center;
    border-bottom: 6px solid var(--btn-green);
  }
  
  .contact-title {
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  }
  
  .contact-intro {
    font-size: 1.05rem;
    color: #fdfdfd;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
    max-width: 65ch;
    margin: 0 auto;
  }
  
  /* -------- TRUST BADGE -------- */
  .trust-badge {
    margin-top: 1rem;
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.35);
    padding: .55rem 1.3rem;
    color: #fff;
    letter-spacing: .4px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
  }
  
  
  /* ==========================================================
     FORM BODY
     ========================================================== */
  .contact-form {
    padding: 2.5rem 3rem 3rem;
  }
  
  .field-group {
    margin-bottom: 1.75rem;
  }
  
  .contact-form label {
    display: block;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: .45rem;
  }
  
  
  /* -------- INPUTS -------- */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--ink);
  
    background: #fff;
    border: 2px solid rgba(160,82,34,0.25);
    transition: all .25s ease;
  
    box-shadow:
      0 1px 2px rgba(0,0,0,.04) inset;
  }
  
  .contact-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  /* Focus glow */
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    border-color: var(--btn-green);
    box-shadow: 0 0 0 4px rgba(63,118,82,0.22);
    outline: none;
  }
  
  
  /* -------- SELECT DROPDOWN CARET -------- */
  .contact-form select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--dark-brown) 50%),
      linear-gradient(135deg, var(--dark-brown) 50%, transparent 50%);
    background-position:
      calc(100% - 22px) 55%,
      calc(100% - 16px) 55%;
    background-size: 7px 7px;
    background-repeat: no-repeat;
  }
  
  
  /* ==========================================================
     SUBMIT BUTTON (Guaranteed Visible)
     ========================================================== */
  .contact-submit {
    width: 100%;
    padding: 1rem 1.3rem;
    margin-top: .5rem;
    border: none;
    border-radius: 12px;
  
    background: linear-gradient(
      to right,
      var(--btn-green),
      #2f5d41,
      var(--brown)
    );
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .4px;
  
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    cursor: pointer;
    transition: all .25s ease;
  
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  /* Hover */
  .contact-submit:hover {
    background: linear-gradient(
      to right,
      #2f5d41,
      var(--btn-green),
      var(--brown)
    );
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
  }
  
  
  /* ==========================================================
     RESPONSIVE
     ========================================================== */
  @media (max-width: 900px) {
    #contact-form-wrap {
      flex-direction: column;
    }
    .contact-photo-panel {
      height: 260px;
      border-left: none;
      border-bottom: 6px solid var(--btn-green);
    }
  }
  
  @media (max-width: 720px) {
    .contact-form {
      padding: 2rem 1.5rem;
    }
    .contact-header-bar {
      padding: 1.75rem 1.5rem 2rem;
    }
  }
  