/* ── Contact form card ────────────────────────────────────────────────── */
.contact-form-section {
  margin-top: 2rem;
  max-width: 1000px;
  margin-inline: auto;
  width: 100%;
  animation: cf-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--app);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 48px var(--shadow-black-light);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Two-column layout */
.cf-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 520px;
}

/* Left decorative panel */
.cf-info-panel {
  background: var(--green);
  padding: 3rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cf-info-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, hsla(0, 0%, 100%, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cf-info-panel::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -25%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, hsla(0, 0%, 100%, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cf-info-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cf-info-icon {
  background: hsla(0, 0%, 100%, 0.2);
  border-radius: 20px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--font-sec);
  backdrop-filter: blur(4px);
}

.contact-form-section .cf-info-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--font-sec);
  line-height: 1.3;
}

.contact-form-section .cf-info-panel p {
  margin: 0 0 1.75rem;
  color: var(--font-sec);
  opacity: 0.9;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 260px;
}

.cf-info-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.cf-info-feature {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.65rem;
  color: hsla(0, 0%, 100%, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.cf-info-feature:hover {
  background: hsla(0, 0%, 100%, 0.18);
}

.cf-info-feature svg {
  flex-shrink: 0;
  color: #fff;
}

/* Right: form panel */
.cf-form-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes cf-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cf-group {
  margin-bottom: 1.2rem;
}

/* Label */
.cf-label {
  color: var(--font);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-indent: 4px;
}

.cf-label svg {
  color: var(--link-active);
  flex-shrink: 0;
}

/* Input */
.cf-input {
  background: var(--bg-light-gray);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--font);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.cf-input::placeholder {
  color: var(--font-four);
}

.cf-input:focus {
  background: var(--bg-light-gray);
  border-color: var(--link-active);
  box-shadow: 0 0 0 3px var(--bg-primary-alpha-10);
  outline: none;
}

.cf-input.cf-input-error {
  border-color: var(--red-solid);
  box-shadow: 0 0 0 3px var(--red-bg);
}

.cf-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Error */
.cf-error {
  color: var(--red-solid);
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Captcha */
.cf-captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.cf-captcha-label {
  font-size: 0.85rem;
  color: var(--font-four);
  margin: 0;
}

/* Server error */
.cf-server-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 10px;
  color: var(--red-solid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

/* Submit button */
.cf-submit-btn {
  align-items: center;
  background: var(--green);
  border: none;
  border-radius: 12px;
  color: var(--font-sec);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.cf-submit-btn::before {
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s;
  width: 100%;
}

.cf-submit-btn:hover:not(:disabled) {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.cf-submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.cf-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cf-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.cf-submit-btn:disabled:hover {
  box-shadow: none;
  transform: none;
}

/* Spinner */
.cf-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf-spin 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.cf-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 12px;
}

.cf-success-icon {
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
  padding: 15px;
  color: #2ecc71;
}

.cf-success h4 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--font) 0%, #2ecc71 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--font);
}

.cf-success p {
  margin: 0;
  color: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.8;
}

/* Reset button */
.cf-reset-btn {
  margin-top: 0.5rem;
  background: transparent;
  border: 2px solid var(--link-active);
  border-radius: 12px;
  color: var(--link-active);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cf-reset-btn:hover {
  background: var(--link-active);
  box-shadow: 0 4px 12px rgba(59, 187, 201, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Transition */
.form-fade-enter-active,
.form-fade-leave-active {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-fade-enter-from,
.form-fade-leave-to {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

/* ── Google Maps section ──────────────────────────────────────────────────── */
.map-section {
  margin-top: 2.5rem;
  max-width: 1000px;
  margin-inline: auto;
  width: 100%;
  animation: cf-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
  background: var(--app);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 48px var(--shadow-black-light);
  overflow: hidden;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.map-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, hsla(0, 0%, 100%, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.map-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: hsla(0, 0%, 100%, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-header-icon svg {
  color: var(--font-sec);
  display: inline-block;
}

.map-section .map-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--font-sec);
}

.map-section .map-header p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--font-sec);
  opacity: 0.85;
}

.map-container {
  overflow: hidden;
  min-height: 450px;
  position: relative;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bg-light-gray) 0%, var(--app) 50%, var(--bg-primary-alpha-03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1;
}

.map-placeholder:hover {
  background: linear-gradient(160deg, var(--app) 0%, var(--bg-light-gray) 50%, var(--bg-primary-alpha-08) 100%);
}

.map-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}

.map-pin-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 32px rgba(59, 187, 201, 0.3);
  animation: map-pin-float 3s ease-in-out infinite;
}

.map-pin-icon svg {
  display: inline-block;
}

@keyframes map-pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.map-placeholder-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--font);
  letter-spacing: -0.3px;
}

.map-placeholder-address {
  font-size: 0.95rem;
  color: var(--font-four);
  line-height: 1.5;
}

.map-load-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem 2.25rem;
  background: var(--green);
  color: var(--font-sec);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(59, 187, 201, 0.25);
  position: relative;
  overflow: hidden;
}

.map-load-btn::before {
  background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.2), transparent);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 0.5s;
  width: 100%;
}

.map-load-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 187, 201, 0.35);
}

.map-load-btn:hover::before {
  left: 100%;
}

.map-load-btn:active {
  transform: translateY(0);
}

/* Map transitions */
.map-fade-leave-active {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.map-fade-leave-to {
  opacity: 0;
  transform: scale(0.95);
}

/* ══ Responsive ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 860px) {
  .cf-layout {
    grid-template-columns: 260px 1fr;
    min-height: auto;
  }

  .cf-info-panel {
    padding: 2rem 1.5rem;
  }

  .contact-form-section .cf-info-panel h3 {
    font-size: 1.25rem;
  }

  .contact-form-section .cf-info-panel p {
    font-size: 0.85rem;
    max-width: 220px;
  }

  .cf-form-panel {
    padding: 2rem 1.75rem;
  }
}

/* Mobile: stack layout */
@media (max-width: 680px) {
  .contact-form-section {
    border-radius: 20px;
  }

  .cf-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cf-info-panel {
    padding: 2rem 1.5rem;
  }

  .cf-info-inner {
    gap: 0.15rem;
  }

  .cf-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 1rem;
  }

  .cf-info-icon svg {
    width: 36px;
    height: 36px;
  }

  .contact-form-section .cf-info-panel h3 {
    font-size: 1.2rem;
  }

  .contact-form-section .cf-info-panel p {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .cf-info-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .cf-info-feature {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
    gap: 0.4rem;
  }

  .cf-info-feature svg {
    width: 14px;
    height: 14px;
  }

  .cf-form-panel {
    padding: 2rem 1.5rem;
  }

  .cf-row {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .map-container {
    min-height: 350px;
  }

  .map-header {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }

  .map-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .map-header-icon svg {
    width: 22px;
    height: 22px;
  }

  .map-section .map-header h3 {
    font-size: 1.15rem;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .contact-form-section {
    border-radius: 16px;
  }

  .cf-info-panel {
    padding: 1.5rem 1.25rem;
  }

  .cf-form-panel {
    padding: 1.5rem 1.25rem;
  }

  .cf-input {
    font-size: 16px;
    padding: 0.75rem;
  }

  .cf-info-features {
    flex-direction: column;
    gap: 0.5rem;
  }

  .map-container {
    min-height: 300px;
  }

  .map-section {
    margin-top: 2rem;
    border-radius: 16px;
  }

  .map-header {
    padding: 1.15rem 1.25rem;
    gap: 0.75rem;
  }

  .map-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .map-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .map-section .map-header h3 {
    font-size: 1.1rem;
  }

  .map-pin-icon {
    width: 80px;
    height: 80px;
  }

  .map-pin-icon svg {
    width: 40px;
    height: 40px;
  }

  .map-placeholder-title {
    font-size: 1.1rem;
  }

  .map-load-btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
  }
}
