/* ============================================================
   Contact page
   ============================================================ */

/* Contact info strip ---------------------------------------- */
.contact-info {
  padding: 72px 0;
  background: #ffffff;
  border-bottom: 1px solid #F5E1E5;
}

.contact-info-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.contact-info-header .program-content-eyebrow { margin-bottom: 14px; }

.contact-info-header h2 {
  font-family: var(--font-body);
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  font-weight: 700;
}

.contact-info-header p {
  font-size: 16px;
  line-height: 26px;
  color: #666666;
  margin: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1180px) {
  .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  padding: 22px 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #FFF9FA 100%);
  border: 1px solid #F0D6DE;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(135, 11, 34, 0.35);
  box-shadow: 0 20px 40px -18px rgba(135, 11, 34, 0.24);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #6E0819);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(135, 11, 34, 0.45);
}

.contact-card-icon svg { width: 22px; height: 22px; }

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.contact-card p {
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

.contact-card-value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: 6px;
  line-height: 1.4;
  word-break: break-word;
}

/* Form + map ------------------------------------------------- */
.contact-form-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #ffffff 0%, #FFF9FA 100%);
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 380px;
  height: 380px;
  border: 2px dashed rgba(157, 13, 40, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.contact-form-section .container { position: relative; z-index: 1; }

.contact-form-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.contact-form-header h2 {
  font-family: var(--font-body);
  font-size: 36px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 8px 0 12px;
  letter-spacing: -0.005em;
  font-weight: 700;
}

.contact-form-header p {
  font-size: 16px;
  line-height: 26px;
  color: #666666;
  margin: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #F0D6DE;
  box-shadow: 0 20px 40px -25px rgba(135, 11, 34, 0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #F0D6DE;
  background: #ffffff;
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-field select {
  padding-right: 40px;
  background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23870B22' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.contact-field textarea {
  min-height: 130px;
  line-height: 1.5;
  font-family: var(--font-body);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(135, 11, 34, 0.12);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #b0959b;
  font-weight: 400;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
}

.contact-consent input {
  margin-top: 2px;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-submit {
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), #6E0819);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(135, 11, 34, 0.4);
}

.contact-submit svg { width: 16px; height: 16px; }

/* Map ------------------------------------------------------- */
.contact-map {
  position: sticky;
  top: 100px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #F0D6DE;
  box-shadow: 0 20px 40px -25px rgba(135, 11, 34, 0.2);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #FBEAEE, #F7D0D7);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .contact-info { padding: 56px 0; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .contact-info-grid > .contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact-info-header h2, .contact-form-header h2 { font-size: 26px; }
  .contact-form-section { padding: 64px 0; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 24px; }
  .contact-field-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-map { position: static; aspect-ratio: 3 / 2; }
}

/* Success message shown after demo form submit */
.form-success {
  padding: 28px;
  background: #F4FBF6;
  border: 1px solid #BFE5CB;
  border-radius: 12px;
  color: #1E6B3A;
  font-weight: 600;
  font-size: 15.5px;
}

/* value cards reused on the recruitment / certification pages */
.rules-section .values-grid { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
@media (max-width: 900px) { .rules-section .values-grid { grid-template-columns: 1fr; } }

/* Selects must shrink to their container (long track names overflowed mobile) */
.contact-field { min-width: 0; }
.contact-field select,
.contact-field input,
.contact-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
