/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Contact Form — Figma Redesign
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.cfi-section {
  padding: 5rem 0;
  background: var(--bg-light, #f8fafc);
}

.cfi-header {
  margin-bottom: 3rem;
}

/* ── Info Cards ─────────────────────────────────────────── */
.cfi-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.cfi-info-card {
  background: #ffffff;
  border: 0.8px solid #c0e2f7;
  border-radius: 16px;
  box-shadow: 0 10px 7.5px rgba(0, 0, 0, 0.1), 0 4px 3px rgba(0, 0, 0, 0.1);
  padding: 1.55rem;
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

[dir="ltr"] .cfi-info-card {
  flex-direction: row;
}

.cfi-info-card--link:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.cfi-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #065d9b 0%, #054b7d 48.5%, #002c51 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1.2rem;
}

.cfi-info-body {
  flex: 1;
  min-width: 0;
  text-align: right;
}
[dir="ltr"] .cfi-info-body {
  text-align: left;
}

.cfi-info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 0.25rem;
  line-height: 1.875;
}

.cfi-info-value {
  font-size: 0.95rem;
  color: rgba(48, 48, 48, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* ── Guarantee Card ─────────────────────────────────────── */
.cfi-guarantee-card {
  background: linear-gradient(135deg, #065d9b 0%, #054b7d 48.5%, #002c51 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.cfi-guarantee-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 0.75rem;
  text-align: right;
}
[dir="ltr"] .cfi-guarantee-title {
  text-align: left;
}

.cfi-guarantee-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 0 1rem;
  text-align: right;
}
[dir="ltr"] .cfi-guarantee-body {
  text-align: left;
}

.cfi-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.cfi-guarantee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.81);
  flex-shrink: 0;
}

/* ── Form Card ──────────────────────────────────────────── */
.cfc-card {
  background: #ffffff;
  border: 0.8px solid rgba(25, 180, 142, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 7.5px rgba(0, 0, 0, 0.1), 0 4px 3px rgba(0, 0, 0, 0.1);
  padding: 2.05rem;
}

.cfc-title {
  font-size: 2rem;
  font-weight: 600;
  color: #0d3658;
  margin: 0 0 1.5rem;
  text-align: right;
  line-height: 1.3;
}
[dir="ltr"] .cfc-title {
  text-align: left;
}

.cfc-field {
  display: flex;
  flex-direction: column;
}

.cfc-label {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
  text-align: right;
  display: block;
}
[dir="ltr"] .cfc-label {
  text-align: left;
}

/* ── Form Inputs ────────────────────────────────────────── */
.cf-input,
.cf-textarea {
  border: 2px solid #c0e2f7 !important;
  border-radius: 14px !important;
  background: #ffffff;
  font-size: 1rem;
  padding: 0.875rem 1.125rem;
  color: var(--text, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: right;
}
[dir="ltr"] .cf-input,
[dir="ltr"] .cf-textarea {
  text-align: left;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
  color: rgba(10, 10, 10, 0.5);
  font-size: 0.9rem;
}

.cf-input:focus,
.cf-textarea:focus {
  border-color: #36a3e6 !important;
  box-shadow: 0 0 0 0.2rem rgba(54, 163, 230, 0.18) !important;
  outline: none;
}

.cf-input:hover,
.cf-textarea:hover {
  border-color: rgba(30, 58, 95, 0.35) !important;
}

.cf-textarea {
  min-height: 11.35rem;
  resize: vertical;
  line-height: 1.6;
}

select.cf-input {
  -webkit-appearance: auto;
  appearance: auto;
}

/* Phone field override to match Figma */
.cfc-phone-wrap {
  width: 100%;
}
.cfc-phone-wrap .cf-phone-input-wrap {
  border: 2px solid #c0e2f7 !important;
  border-radius: 14px !important;
  min-height: 3.275rem;
}
.cfc-phone-wrap .cf-phone-input-wrap:focus-within {
  border-color: #36a3e6 !important;
  box-shadow: 0 0 0 0.2rem rgba(54, 163, 230, 0.18) !important;
}
.cfc-phone-wrap .cf-phone-input-wrap:hover {
  border-color: rgba(30, 58, 95, 0.35) !important;
}
.cfc-phone-wrap .cf-dial-box {
  border-inline-end-color: rgba(192, 226, 247, 0.8) !important;
}

/* ── Submit Button ──────────────────────────────────────── */
.cf-submit {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #065d9b 0%, #054b7d 48.5%, #002c51 100%) !important;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.cf-submit:hover,
.cf-submit:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(6, 93, 155, 0.4);
  outline: none;
  color: #ffffff;
}

.cf-submit:active {
  transform: translateY(0);
  filter: none;
}

/* ── WhatsApp alt link ──────────────────────────────────── */
.cfc-wa-alt {
  font-size: 0.9rem;
  text-align: right;
}
[dir="ltr"] .cfc-wa-alt {
  text-align: left;
}

.contact-wa-link {
  color: #075e54;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.contact-wa-link:hover {
  text-decoration: underline;
}

/* Alert */
#contact-alert.d-none {
  display: none !important;
}
#contact-alert {
  border-radius: 12px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .cfi-section {
    padding: 3.5rem 0;
  }
  .cfc-card {
    padding: 1.5rem;
  }
  .cfc-title {
    font-size: 1.6rem;
  }
}
