/* ============================================
   GOLDEN INK — Contact Page Styles
   contact.css
   ============================================ */

/* Page Hero (compact) */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.page-hero__breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero__breadcrumb a:hover {
  color: var(--gold);
}

.page-hero h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-gap) var(--container-pad);
}

/* Info Column */
.contact-info__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color var(--fast) var(--ease);
}

.contact-info__card:hover {
  border-color: var(--border-hover);
}

.contact-info__icon {
  font-size: 1.3em;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

.contact-info__text a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.contact-info__text a:hover {
  color: var(--gold);
}

.contact-info__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.hours-table td {
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--white);
  font-weight: 500;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr.today td {
  color: var(--gold);
}

/* WhatsApp CTA */
.contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: filter var(--fast) var(--ease);
}

.contact-whatsapp:hover {
  filter: brightness(1.1);
  color: #fff;
}

.contact-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Map */
.contact-map {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}

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

/* Form Column */
.form-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  margin-bottom: 0.5rem;
}

.form-section__subtitle {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--gold);
}

.form-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--white);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.form-field::placeholder {
  color: var(--placeholder);
}

.form-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
  outline: none;
}

.form-field.field--error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.1);
}

.form-field.field--success {
  border-color: var(--success);
}

.field-error {
  display: block;
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: 6px;
}

/* Select styling */
select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239A9080' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Phone with country code */
.phone-group {
  display: flex;
  gap: 8px;
}

.phone-group select {
  width: 110px;
  flex-shrink: 0;
}

/* File Upload */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.file-drop-zone__text {
  font-size: var(--text-sm);
  color: var(--muted);
}

.file-drop-zone__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.file-drop-zone__hint {
  font-size: var(--text-xs);
  color: var(--placeholder);
  margin-top: 0.5rem;
}

.file-previews {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.file-preview {
  width: 80px;
  text-align: center;
}

.file-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.file-preview__icon {
  font-size: 2rem;
}

.file-preview__name {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Textarea counter */
.textarea-wrapper {
  position: relative;
}

.char-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: var(--text-xs);
  color: var(--placeholder);
  pointer-events: none;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0;
}

.checkbox-group label a {
  color: var(--gold);
  text-decoration: underline;
}

/* Submit */
.form__submit {
  width: 100%;
  position: relative;
}

.form__submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Error banner */
.form-error-banner {
  background: rgba(224, 82, 82, 0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-error-banner.visible {
  display: block;
}

.form-error-banner p {
  color: var(--error);
  font-size: var(--text-sm);
  margin: 0;
}

/* ══════════════════════════════════════════
   THANK YOU PAGE
   ══════════════════════════════════════════ */
.thank-you {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.thank-you__check {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.thank-you__check circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: drawCircle 0.6s ease-out 0.2s forwards;
}

.thank-you__check path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s ease-out 0.8s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.thank-you h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  margin-bottom: 1rem;
}

.thank-you__message {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 500px;
  margin-inline: auto;
}

.thank-you__whatsapp-note {
  font-size: var(--text-sm);
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.thank-you__back {
  display: inline-block;
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.thank-you__back:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding-block: var(--section-gap-sm);
  }

  .page-hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-group select {
    width: 100%;
  }
}
