/* Contact page-specific styles. */

/* ===== Hero ===== */
.ct-hero { padding: 112px 0 96px; background: linear-gradient(180deg, #FDFDFE, var(--off-white-60)); border-bottom: 1px solid var(--color-border); position: relative; overflow: hidden; }
.ct-hero::before { content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%); width: 1200px; height: 600px; background: radial-gradient(ellipse at center, rgba(30,122,43,0.08), transparent 60%); pointer-events: none; }
.ct-hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.ct-hero .kicker.green { color: var(--green-text); }
.ct-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: 1.04; letter-spacing: -0.025em; margin: 20px 0 18px; }
.ct-hero p.lead { font-size: 20px; color: var(--color-text-muted); line-height: 1.5; max-width: 720px; margin: 0 auto; }

/* ===== Route cards ===== */
.ct-routes { padding: 96px 0; }
.ct-routes-head { text-align: center; margin-bottom: 48px; }
.ct-routes-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; }
.ct-routes-head p { font-size: 16px; color: var(--color-text-muted); max-width: 620px; margin: 12px auto 0; line-height: 1.55; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { padding: 36px 32px; background: #fff; border: 1px solid var(--color-border); border-radius: 18px; display: flex; flex-direction: column; gap: 16px; min-height: 320px; transition: all var(--motion-base) var(--ease-standard); position: relative; overflow: hidden; }
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.route-card.primary { background: var(--gradient-deep); color: #fff; border-color: transparent; }
.route-card.primary::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 280px at 85% 0%, rgba(97,206,112,0.16), transparent 55%); pointer-events: none; }
.route-card > * { position: relative; z-index: 1; }
.route-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; }
.route-card.primary .ic { background: rgba(127,212,142,0.18); color: #7FD48E; }
.route-card .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.route-card .kicker { letter-spacing: 0.1em; color: var(--green-text); margin-top: 4px; }
.route-card.primary .kicker { color: #7FD48E; }
.route-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.route-card.primary h3 { color: #fff; }
.route-card p { font-size: 15px; color: var(--color-text-muted); line-height: 1.55; flex: 1; }
.route-card.primary p { color: rgba(255,255,255,0.75); }
.route-card .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.route-card .actions .btn-link { display: inline-flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 10px; background: var(--off-white-60); border: 1px solid var(--color-border-subtle); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--color-text); letter-spacing: -0.005em; transition: all var(--motion-base) var(--ease-standard); }
.route-card .actions .btn-link:hover { background: #fff; border-color: var(--green-100); color: var(--green-100); transform: translateX(2px); }
.route-card .actions .btn-link.solid { background: var(--green-100); color: #fff; border-color: var(--green-100); }
.route-card .actions .btn-link.solid:hover { background: #0E3B2E; border-color: #0E3B2E; color: #fff; }
.route-card.primary .actions .btn-link { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #fff; }
.route-card.primary .actions .btn-link:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; }
.route-card.primary .actions .btn-link.solid { background: #7FD48E; color: #0E3B2E; border-color: #7FD48E; }
.route-card.primary .actions .btn-link.solid:hover { background: #fff; color: #0E3B2E; border-color: #fff; }
.route-card .actions .btn-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.25; flex-shrink: 0; }

/* ===== Form section ===== */
.ct-form-sec { padding: 104px 0; background: var(--off-white-60); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.ct-form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.ct-form-head .kicker.green { color: var(--green-text); }
.ct-form-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; margin: 16px 0 14px; }
.ct-form-head p.lead { font-size: 16px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 32px; }
.ct-form { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.ct-form .field { display: flex; flex-direction: column; gap: 6px; }
.ct-form .field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-form label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--color-text); letter-spacing: 0.01em; }
.ct-form label .opt { color: var(--color-text-subtle); font-weight: 500; margin-left: 6px; font-size: 12px; }
.ct-form input, .ct-form select, .ct-form textarea { font-family: var(--font-body); font-size: 15px; color: var(--color-text); padding: 12px 14px; background: var(--off-white-40); border: 1px solid var(--color-border); border-radius: 10px; transition: all var(--motion-base) var(--ease-standard); resize: vertical; width: 100%; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--green-100); background: #fff; box-shadow: 0 0 0 3px rgba(30,122,43,0.1); }
.ct-form textarea { min-height: 140px; }
.ct-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6877' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
/* Stack vertically: note on top (full width, never squashed), button below
 * (auto width, left-aligned). Previously the row was a horizontal flex with
 * justify-content: space-between, which squeezed the note into a sliver
 * once the button reached its natural width. */
.ct-form .submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--color-border-subtle); }
.ct-form .submit-row .note { font-size: 12.5px; color: var(--color-text-subtle); line-height: 1.45; max-width: 100%; }
.ct-form button[type=submit],
.ct-form input[type=submit],
.ct-form .ct-submit-btn { font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 14px 22px; background: var(--green-100); color: #fff; border: none; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.005em; transition: all var(--motion-base) var(--ease-standard); flex-shrink: 0; }
.ct-form button[type=submit]:hover,
.ct-form input[type=submit]:hover,
.ct-form .ct-submit-btn:hover { background: #0E3B2E; transform: translateX(2px); }
.ct-form button[type=submit] svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* --- CF7-specific overrides ---
 * CF7 wraps each form control in <span class="wpcf7-form-control-wrap">.
 * Make those spans block-level so inputs (which are width:100%) expand to
 * fill the parent .field instead of being constrained by the inline span. */
.ct-form .wpcf7-form-control-wrap { display: block; }
/* Inside .submit-row the submit-button wrapper should stay inline so the
 * note+button remain in a single flex row. */
.ct-form .submit-row .wpcf7-form-control-wrap { display: inline-block; flex-shrink: 0; }
/* Per-field validation tip + invalid-state border. */
.ct-form .wpcf7-not-valid-tip { color: #b00020; font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
.ct-form .wpcf7-not-valid { border-color: #b00020; }
/* Bottom-of-form response (success / failure / validation summary). */
.ct-form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; border: 1px solid var(--color-border); background: var(--off-white-40); color: var(--color-text); }
.ct-form.sent .wpcf7-response-output { border-color: var(--green-100); background: rgba(30,122,43,0.08); }
.ct-form.invalid .wpcf7-response-output,
.ct-form.failed .wpcf7-response-output,
.ct-form.spam .wpcf7-response-output { border-color: #b00020; background: rgba(176,0,32,0.06); color: #6b0014; }
/* Inline AJAX spinner. */
.ct-form .wpcf7-spinner { vertical-align: middle; margin-left: 8px; }

/* Next-steps aside */
.ct-next { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.ct-next h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 4px; }
.ct-next ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: steps; }
.ct-next li { padding: 14px 16px; background: var(--off-white-60); border: 1px solid var(--color-border-subtle); border-radius: 12px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; counter-increment: steps; }
.ct-next li::before { content: counter(steps, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--green-100); letter-spacing: 0.1em; padding: 4px 8px; background: var(--green-20); border-radius: 6px; }
.ct-next li strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.ct-next li span { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

/* ===== Direct contact details ===== */
.ct-direct { padding: 104px 0; }
.ct-direct-head { max-width: 720px; margin-bottom: 44px; }
.ct-direct-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 16px; }
.ct-direct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ct-direct-card { padding: 32px 28px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; transition: all var(--motion-base) var(--ease-standard); }
.ct-direct-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.ct-direct-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; }
.ct-direct-card .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.ct-direct-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--color-text-subtle); letter-spacing: 0.08em; text-transform: uppercase; }
.ct-direct-card .primary { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; color: var(--color-text); }
.ct-direct-card a.primary:hover { color: var(--green-100); }
.ct-direct-card p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

/* --- Per-region contact cards (Global = 3 blocks, regional = 1 block) --- */
.ct-region-grid { display: grid; gap: 16px; }
.ct-region-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ct-region-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.ct-region-grid--1 { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
.ct-region-card { padding: 30px 28px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; transition: all var(--motion-base) var(--ease-standard); }
.ct-region-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.ct-region-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-subtle); }
.ct-region-flag { font-size: 30px; line-height: 1; }
.ct-region-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--color-text); margin: 0; line-height: 1.25; }
.ct-region-list { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.ct-region-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--color-text); }
.ct-region-list li svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--green-100); fill: none; stroke-width: 2; }
.ct-region-list a { color: var(--color-text); text-decoration: none; transition: color var(--motion-fast) var(--ease-standard); word-break: break-word; }
.ct-region-list a:hover { color: var(--green-100); }
@media (max-width: 900px) {
  .ct-region-grid--3 { grid-template-columns: 1fr; }
  .ct-region-grid--2 { grid-template-columns: 1fr; }
}

/* ===== Location ===== */
.ct-loc { padding: 0; }
.ct-loc-inner { padding: 96px 0; background: var(--gradient-deep); color: #fff; position: relative; overflow: hidden; }
.ct-loc-inner::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(800px 400px at 80% 20%, rgba(97,206,112,0.12), transparent 55%),
  radial-gradient(600px 300px at 20% 100%, rgba(97,206,112,0.06), transparent 55%);
  pointer-events: none; }
.ct-loc-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ct-loc-grid .kicker { color: var(--green-100); letter-spacing: 0.1em; }
.ct-loc-grid h2 { font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1.08; letter-spacing: -0.025em; color: #fff; margin-top: 16px; margin-bottom: 18px; }
.ct-loc-grid p { font-size: 17px; color: rgba(255,255,255,0.78); line-height: 1.6; max-width: 480px; }
.ct-loc-regions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-loc-regions span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.ct-loc-visual { aspect-ratio: 16/10; border-radius: 18px; background: linear-gradient(180deg, rgba(8,18,28,0.6), rgba(8,18,28,0.85)); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.ct-loc-visual .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(127,212,142,0.28); }
.ct-loc-visual .map-svg circle { fill: currentColor; }
.ct-loc-visual .pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.ct-loc-visual .pin .marker { width: 14px; height: 14px; border-radius: 50%; background: #7FD48E; box-shadow: 0 0 22px rgba(127,212,142,0.8), 0 0 0 3px rgba(127,212,142,0.2); position: relative; margin-top: 0; }
.ct-loc-visual .pin .marker::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(127,212,142,0.45); animation: pulse 2.4s ease-out infinite; }
.ct-loc-visual .pin .label { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: 11px; color: #fff; letter-spacing: 0.04em; background: rgba(0,0,0,0.7); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); white-space: nowrap; backdrop-filter: blur(6px); }
.ct-loc-visual .pin.us .marker::after { animation-delay: 0.6s; }
.ct-loc-visual .pin.sa .marker::after { animation-delay: 1.2s; }
.ct-loc-visual .pin.pl .marker::after { animation-delay: 1.8s; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
/* Pin coordinates — equirectangular projection of the continent-mask viewBox */
.ct-loc-visual .pin.uk { top: 26.2%; left: 49.7%; }
.ct-loc-visual .pin.us { top: 38.5%; left: 22.9%; }
.ct-loc-visual .pin.sa { top: 57.8%; left: 55.1%; }
.ct-loc-visual .pin.pl { top: 25.1%; left: 55.8%; }
/* PL label drops below to avoid overlapping the UK label */
.ct-loc-visual .pin.pl .label { bottom: auto; top: calc(100% + 10px); }

/* ===== Final CTA ===== */
.ct-final { padding: 104px 0; background: #fff; border-top: 1px solid var(--color-border); }
.ct-final .inner { text-align: center; max-width: 720px; margin: 0 auto; }
.ct-final h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; margin: 20px 0 14px; }
.ct-final p { font-size: 16.5px; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 28px; }
.ct-final .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1020px) {
  .ct-hero h1 { font-size: 44px; }
  .route-grid, .ct-direct-grid { grid-template-columns: 1fr; }
  .ct-form-grid { grid-template-columns: 1fr; gap: 32px; }
  .ct-next { position: static; }
  .ct-loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-form .field.row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-hero h1, .ct-routes-head h2, .ct-form-head h2, .ct-direct-head h2, .ct-loc-grid h2, .ct-final h2 { font-size: 30px; }
}
