/* ═══════════════════════════════════════════════
   contact.css — Contact Section & Get Involved Modal
   ═══════════════════════════════════════════════ */

/* ── Contact Section ── */
#contact {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(200,151,58,0.07) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -160px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26,92,71,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Left info column */
.contact-info {
  position: sticky;
  top: 100px;
}

.contact-intro {
  font-size: 1.02rem;
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: 36px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(200,151,58,0.12);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200,151,58,0.28);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
   border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 600;
}

.contact-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Involvement ways */
.involvement-ways {
  background: linear-gradient(135deg, var(--emerald), #0D3D2B);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.involvement-ways::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(200,151,58,0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.involvement-ways h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.way-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.way-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.way-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.way-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* Right form column */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200,151,58,0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,151,58,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A6A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.form-submit:hover {
  background: linear-gradient(135deg, #0D3D2B, var(--emerald));
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,92,71,0.35);
}

.form-submit svg {
  transition: transform 0.3s ease;
}

.form-submit:hover svg {
  transform: translateX(4px);
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease both;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 12px;
}

.success-msg {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto 28px;
}

.btn-reset {
  background: var(--gold-pale);
  color: var(--gold);
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Get Involved Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 20, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  opacity: 0;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(135deg, var(--emerald), #0D3D2B);
  padding: 40px 44px 36px;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(200,151,58,0.1) 1px, transparent 0);
  background-size: 28px 28px;
}

.modal-header-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.modal-header p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 2;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

.modal-body {
  padding: 36px 44px 44px;
}

/* Ways to get involved */
.involve-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.involve-option {
  border: 2px solid rgba(200,151,58,0.18);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--cream);
}

.involve-option:hover,
.involve-option.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.involve-option.selected {
  box-shadow: 0 0 0 3px rgba(200,151,58,0.2);
}

.involve-option-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.involve-option-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 4px;
}

.involve-option-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.modal-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-btn-primary {
  flex: 1;
  min-width: 160px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,151,58,0.4);
}

.modal-btn-secondary {
  padding: 14px 24px;
  background: transparent;
  color: var(--muted);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.modal-btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* scrollbar for modal */
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: var(--cream-dark); }
.modal-box::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-form-wrap {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-header, .modal-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .involve-options {
    grid-template-columns: 1fr;
  }
  .modal-cta-row {
    flex-direction: column;
  }
  .modal-btn-primary, .modal-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
