/* ───────────────────────────  contact.css  ───────────────────────────
   Page-specific styles for contact.php
   Mobile-first, no horizontal overflow, fully visible content
   ------------------------------------------------------------------ */

/* 0. Global resets & variables */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;           /* Prevent sideways scroll */
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
  color: #000;
  line-height: 1.6;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gold:       #d4af37;
  --gold-dark:  #b88700;
  --black:      #000;
  --white:      #fff;
  --muted:      #6f6f6f;
  --bg:         #fafafa;
  --card-bg:    #fff;
  --shadow:     0 8px 24px rgba(0,0,0,.08);
  --container:  1200px;
}

/* 1. Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.section-pad {
  padding: 4rem 1rem;
}
.section-title {
  font-size: clamp(2rem,5vw,2.8rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* 2. Banner */
.banner {
  position: relative;
  overflow: hidden;
  height: clamp(450px, 50vh, 550px);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  text-align: center;
}
.banner-overlay h1 {
  font-size: clamp(1.8rem,5.5vw,2.6rem);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

/* 3. Feedback messages */
.form-message {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: .95rem;
}
.form-message.error {
  background: #fdecea;
  border-left: 4px solid #e74c3c;
  color: #611a15;
}
.form-message.success {
  background: #e6ffed;
  border-left: 4px solid #2ecc71;
  color: #22543d;
}

/* 4. Contact section grid */
.contact .grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact .grid > * {
  flex: 1;
  min-width: 0;   /* allow children to shrink */
}
@media (min-width: 768px) {
  .contact .grid {
    flex-direction: row;
    align-items: start;
  }
}

/* 5. Contact Info card */
.contact-info {
  background: var(--card-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.contact-info h2 {
  font-size: clamp(1.8rem,5vw,2.4rem);
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--black);
}
.info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}
.info-list a {
  color: var(--black);
  text-decoration: none;
}
.info-list a:hover {
  text-decoration: underline;
}

/* 6. Contact Form card */
.contact-form {
  background: var(--card-bg);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-size: clamp(1.8rem,5vw,2.4rem);
  margin-bottom: 1rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}
/* Two-column layout on desktop */
@media (min-width: 768px) {
  .contact-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.2rem;
  }
  .contact-form .form-group:nth-child(1),
  .contact-form .form-group:nth-child(2) {
    grid-column: span 1;
  }
  .contact-form .form-group:nth-child(3),
  .contact-form .form-group:nth-child(4),
  .contact-form button {
    grid-column: 1 / -1;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: .4rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .3s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
}

/* 7. Submit button */
.contact-form button {
  justify-self: start;
  padding: .95rem 2.4rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.contact-form button:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.1);
}

/* 8. Mobile tweaks */
@media (max-width: 480px) {
  .section-pad { padding: 3rem 1rem; }
  .banner { height: clamp(450px,50vh,480px); }
  .contact-form form { display: flex; flex-direction: column; }
  .contact-form button { width: 100%; }
  .info-list li { padding-left: 1.6rem; }
}
