/* ================================================
   CONTACT PAGE STYLES
   Diocese of False Bay
================================================ */

/* ── Page hero ────────────────────────────────── */
.gov-page-hero {
  background: #f5f5f5;
  padding: 60px 40px 40px;
  border-bottom: 3px solid #e8e8e8;
  margin-top: 110px;
}

.gov-hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.gov-page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #003b7a;
  margin-bottom: 12px;
  font-family: "Cabin", sans-serif;
}

.gov-page-hero p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── Main layout ──────────────────────────────── */
.gov-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

/* ── Sections ─────────────────────────────────── */
.gov-section {
  padding: 50px 0 10px;
  border-bottom: 1px solid #e8e8e8;
}

.gov-section:last-child {
  border-bottom: none;
}

.gov-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 35px;
}

.gov-section-header > i {
  font-size: 26px;
  color: #c41e3a;
  margin-top: 4px;
  flex-shrink: 0;
}

.gov-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #003b7a;
  margin-bottom: 6px;
  font-family: "Cabin", sans-serif;
}

.gov-section-header p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* ── Grid ─────────────────────────────────────── */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

/* ── Person card ──────────────────────────────── */
.person-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.person-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.person-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
}

/* ── Person image — ALWAYS a circle ──────────── */
.person-img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50% !important;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  border: 3px solid #e8e8e8;
  background: #f0f0f0;
  display: block;
  flex-shrink: 0;
}

/* ── Person info ──────────────────────────────── */
.person-info {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c41e3a;
  margin-bottom: 4px;
  line-height: 1.4;
  font-family: "Cabin", sans-serif;
}

.person-role {
  font-size: 0.9rem;
  color: #c41e3a;
  font-weight: 500;
  margin-bottom: 12px;
}

.person-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: #003b7a;
  text-decoration: none;
  font-weight: 500;
}

.contact-link i {
  font-size: 0.8rem;
  color: #c41e3a;
  width: 14px;
  flex-shrink: 0;
}

.contact-link:hover {
  color: #c41e3a;
  text-decoration: underline;
}

/* ================================================
   CONTACT SECTION STYLES
================================================ */

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* ── Office Information ──────────────────────── */
.office-info {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.office-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.office-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003b7a;
  margin: 0;
  font-family: "Cabin", sans-serif;
}

.office-details {
  padding: 20px 24px;
}

.office-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.office-item:last-child {
  margin-bottom: 0;
}

.office-item i {
  font-size: 1rem;
  color: #c41e3a;
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.office-item-content h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #003b7a;
  margin: 0 0 4px;
  font-family: "Cabin", sans-serif;
}

.office-item-content p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.office-item-content a {
  color: #003b7a;
  text-decoration: none;
  font-weight: 500;
}

.office-item-content a:hover {
  color: #c41e3a;
  text-decoration: underline;
}

/* ── Map Section ───────────────────────────── */
.map-section {
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
}

.map-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #003b7a;
  margin: 0 0 12px 24px;
  font-family: "Cabin", sans-serif;
}

.map-container {
  width: 100%;
  height: 250px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin: 12px 0 0 24px;
  font-size: 0.85rem;
  color: #003b7a;
  text-decoration: none;
  font-weight: 600;
}

.map-link:hover {
  color: #c41e3a;
  text-decoration: underline;
}

.map-link i {
  margin-left: 6px;
  font-size: 0.8rem;
}

/* ── Enquiry Form ──────────────────────────── */
.enquiry-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.enquiry-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.enquiry-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003b7a;
  margin: 0;
  font-family: "Cabin", sans-serif;
}

.enquiry-form-content {
  padding: 20px 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-family: "Cabin", sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #333;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-family: "Cabin", sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #003b7a;
  box-shadow: 0 0 0 3px rgba(0, 59, 122, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

/* ── Form Buttons ──────────────────────────── */
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-send {
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #003b7a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Cabin", sans-serif;
  transition: background 0.2s ease;
}

.btn-send:hover {
  background: #002855;
}

.btn-send:active {
  transform: translateY(1px);
}

.btn-reset {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #003b7a;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "Cabin", sans-serif;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-reset:hover {
  color: #c41e3a;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .gov-grid {
    grid-template-columns: 1fr;
  }
  .gov-page-hero {
    padding: 50px 24px 30px;
  }
  .gov-main {
    padding: 20px 24px 60px;
  }
  .gov-page-hero h1 {
    font-size: 2.2rem;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  /* Page Hero - Mobile */
  .gov-page-hero {
    margin-top: 200px;
    padding: 30px 16px 24px;
  }
  .gov-page-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .gov-page-hero p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Main - Mobile */
  .gov-main {
    padding: 20px 16px 60px;
  }

  /* Section Headers - Mobile */
  .gov-section {
    padding: 40px 0 10px;
  }

  .gov-section-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }

  .gov-section-header > i {
    font-size: 22px;
  }

  .gov-section-header h2 {
    font-size: 1.5rem;
  }

  /* Person Cards - Mobile */
  .person-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .person-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
  }

  .person-name {
    font-size: 1rem;
  }

  .person-role {
    font-size: 0.85rem;
  }

  .person-contact {
    align-items: center;
  }

  .contact-link {
    font-size: 0.8rem;
  }

  /* Contact Section - Mobile */
  .contact-section {
    padding: 30px 16px;
    gap: 30px;
    margin-top: 0;
  }

  .office-header,
  .enquiry-header {
    padding: 16px 20px;
  }

  .office-details,
  .enquiry-form-content {
    padding: 20px;
  }

  .office-header h2,
  .enquiry-header h2 {
    font-size: 1.3rem;
  }

  .office-item {
    gap: 10px;
    margin-bottom: 14px;
  }

  .office-item i {
    font-size: 0.9rem;
    width: 18px;
  }

  .office-item-content h3 {
    font-size: 0.8rem;
  }

  .office-item-content p {
    font-size: 0.8rem;
  }

  .map-section {
    margin-top: 16px;
    padding-top: 14px;
  }

  .map-section h3 {
    margin-left: 20px;
    font-size: 0.95rem;
  }

  .map-link {
    margin-left: 20px;
    font-size: 0.8rem;
  }

  .map-container {
    height: 250px;
  }

  /* Form - Mobile */
  .form-group {
    margin-bottom: 14px;
  }

  .form-group:last-of-type {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .form-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .btn-send,
  .btn-reset {
    width: 100%;
    font-size: 0.9rem;
  }
}

/* Extra Small Devices */
@media (max-width: 375px) {
  .gov-page-hero {
    margin-top: 180px;
    padding: 24px 12px 20px;
  }
  .gov-page-hero h1 {
    font-size: 1.4rem;
  }

  .gov-page-hero p {
    font-size: 0.85rem;
  }

  .gov-section-header h2 {
    font-size: 1.3rem;
  }

  .person-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }

  .office-header h2,
  .enquiry-header h2 {
    font-size: 1.15rem;
  }

  .map-container {
    height: 220px;
  }
}
