/* ═══════════════════════════════════════════
   contact.css — Contact Page Styles
═══════════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.page-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 40px 80px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse,
    rgba(201, 149, 108, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--warm-white);
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(248, 244, 239, 0.65);
  line-height: 1.8;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.page-hero-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--rose-gold), transparent);
  margin: 0 auto;
  margin-top: 40px;
}

/* ─── PATHS SECTION ─── */
.contact-paths {
  padding: 80px 0;
  background: var(--midnight-noir);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.path-card {
  padding: 44px 36px;
  border: 1px solid rgba(201, 149, 108, 0.15);
  border-radius: 2px;
  background: rgba(26, 26, 46, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.path-card:hover {
  border-color: rgba(201, 149, 108, 0.45);
  transform: translateY(-6px);
  background: rgba(201, 149, 108, 0.04);
}

.path-call {
  border-color: rgba(0, 200, 150, 0.2);
}

.path-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.path-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.path-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.2;
}

.path-desc {
  font-size: 0.88rem;
  color: rgba(248, 244, 239, 0.6);
  line-height: 1.8;
  flex: 1;
}

/* ─── CALENDLY SECTION ─── */
.calendly-section {
  padding: 100px 0;
  background: var(--deep-charcoal);
}

.calendly-header {
  text-align: center;
  margin-bottom: 52px;
}

.calendly-sub {
  font-size: 1rem;
  color: rgba(248, 244, 239, 0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

.calendly-wrap {
  position: relative;
  background: rgba(22, 33, 62, 0.5);
  border: 1px solid rgba(201, 149, 108, 0.2);
  border-radius: 2px;
  overflow: hidden;
  min-height: 700px;
}

/* Placeholder visibile finché Calendly non è configurato */
.calendly-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 33, 62, 0.9);
  z-index: 5;
}

/* Rimuovi il placeholder quando Calendly è attivo */
.calendly-inline-widget:not([data-url*="YOUR-USERNAME"])
  + script
  + .calendly-placeholder,
.calendly-inline-widget[data-processed="true"] ~ .calendly-placeholder {
  display: none;
}

.calendly-placeholder-inner {
  text-align: center;
  padding: 60px 40px;
  max-width: 480px;
}

.calendly-placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 24px;
}

.calendly-placeholder-inner h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--warm-white);
  margin-bottom: 16px;
}

.calendly-placeholder-inner p {
  font-size: 0.9rem;
  color: rgba(248, 244, 239, 0.6);
  line-height: 1.8;
  margin-bottom: 32px;
}

.calendly-reassurance {
  margin-top: 32px;
  text-align: center;
}

.reassurance-items {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.reassurance-items span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(248, 244, 239, 0.45);
  text-transform: uppercase;
}

/* ─── CONTACT FORM SECTION ─── */
.contact-form-section {
  padding: 100px 0;
  background: var(--midnight-noir);
}

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

/* Info Column */
.contact-info-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--warm-white);
  margin-bottom: 28px;
}

.contact-info-text {
  font-size: 0.92rem;
  color: rgba(248, 244, 239, 0.65);
  line-height: 1.9;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 149, 108, 0.15);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.contact-detail-value {
  font-size: 0.88rem;
  color: rgba(248, 244, 239, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-detail-value:hover {
  color: var(--rose-gold);
}

/* Social */
.contact-social {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 149, 108, 0.15);
}

.contact-social-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 20px;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(248, 244, 239, 0.6);
  font-size: 0.88rem;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.social-link:hover {
  color: var(--rose-gold);
}

.social-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}

/* Form Column */
.contact-form-wrap {
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(201, 149, 108, 0.15);
  border-radius: 2px;
  padding: 52px 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 244, 239, 0.55);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(201, 149, 108, 0.2);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(248, 244, 239, 0.25);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rose-gold);
  background: rgba(201, 149, 108, 0.04);
}

.form-input.error,
.form-textarea.error {
  border-color: #e57373;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9956c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form-select option {
  background: #1a1a2e;
  color: var(--warm-white);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

/* Checkbox */
.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(201, 149, 108, 0.4);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--deep-charcoal);
  font-size: 0.7rem;
  font-weight: 700;
}

.form-checkbox-label {
  font-size: 0.8rem;
  color: rgba(248, 244, 239, 0.5);
  line-height: 1.7;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Success / Error */
.form-success,
.form-error {
  display: none;
  padding: 20px 24px;
  border-radius: 2px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-success {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  color: var(--emerald);
}

.form-success.visible {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.form-success-icon {
  font-size: 1.2rem;
  color: var(--rose-gold);
}

.form-error {
  background: rgba(229, 115, 115, 0.1);
  border: 1px solid rgba(229, 115, 115, 0.3);
  color: #e57373;
}

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

/* ─── FINAL CTA BAND ─── */
.contact-cta-band {
  padding: 80px 0;
  background: var(--deep-charcoal);
  text-align: center;
  border-top: 1px solid rgba(201, 149, 108, 0.1);
}

.contact-cta-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.4;
}

.contact-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .paths-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 24px 60px;
  }

  .contact-form-wrap {
    padding: 36px 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reassurance-items {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
