/* ==========================================================================
   C5 Form Jamaica — faithful re-creation of the dviajeroscuba layout
   Palette:
     main green  #009b3b      accent light #a3c2df
     text greys  #525252 / #6f6f6f
     backgrounds cream #f6f4ee / white
     grey button #6c757d      required red #ff0000
   ========================================================================== */

:root {
  --main-color:   #009b3b;
  --main-dark:    #007e30;
  --secondary:    #a3c2df;
  --light-bg:     #f6f4ee;
  --text:         #525252;
  --text-soft:    #6f6f6f;
  --grey-btn:     #6c757d;
  --grey-btn-h:   #5c636a;
  --red:          #ff0000;
  --border:       #e3e0d7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--main-color); text-decoration: none; }
a:hover { color: var(--main-dark); }

img { max-width: 100%; }

.container       { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0; }
.row             { display: flex; flex-wrap: wrap; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; }

/* ============================================================ HEADER */
#header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
#header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
#header .logo a { display: flex; align-items: center; gap: 12px; color: var(--text); }
#header .logo .img {
  width: 46px; height: 32px;
  background-size: cover; background-position: center;
  border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
#header .logo .header-title { font-size: 1.15rem; font-weight: 800; color: var(--main-color); line-height: 1.1; }
#header .logo .description  { font-size: .78rem; color: var(--text-soft); }

#header .right { display: flex; align-items: center; gap: 22px; }

#languages { display: flex; gap: 8px; }
#languages .language .img {
  width: 26px; height: 18px; background-size: cover; background-position: center;
  border-radius: 3px; border: 1px solid var(--border); opacity: .5; transition: opacity .2s;
}
#languages .language.active .img,
#languages .language:hover .img { opacity: 1; }

#contact a { color: var(--text); font-weight: 600; }
#contact a:hover { color: var(--main-color); }

#apply a, .btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--main-color); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: 8px; transition: background .2s;
  border: none; cursor: pointer;
}
#apply a:hover, .btn:hover { background: var(--main-dark); color: #fff; }
#apply a svg, .btn svg { flex: none; }

.btn.grey { background: var(--grey-btn); }
.btn.grey:hover { background: var(--grey-btn-h); }

/* mobile menu toggle */
#nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
#nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ============================================================ JUMBO / HERO */
#jumbo { min-height: 560px; }
#jumbo-left, #jumbo-right { width: 50%; position: relative; }

#jumbo-left {
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  min-height: 560px;
}
#jumbo-left .overlay {
  position: absolute; inset: 0;
  background: none;
}
#jumbo-left-content { position: relative; z-index: 2; padding: 48px; color: #fff; max-width: 560px; }
#jumbo-left-content h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
#jumbo-left-content .apply a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--main-color); font-weight: 700;
  padding: 12px 22px; border-radius: 8px; margin-bottom: 18px;
}
#jumbo-left-content .apply a svg path { fill: var(--main-color); }
#jumbo-left-content .apply a:hover { background: var(--light-bg); }
#jumbo-left-content > p { color: #fff; font-size: 1.05rem; max-width: 420px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
#jumbo-left-content #path { display: none; }

#jumbo-right {
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
#jumbo-right-content { width: 100%; max-width: 460px; }
#jumbo-right-content h2 { font-size: 1.6rem; margin-bottom: 26px; color: var(--text); }

#jumbo-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
#jumbo-steps .step {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 3px 14px rgba(82,82,82,.06);
}
#jumbo-steps .step .title { font-weight: 800; color: var(--main-color); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
#jumbo-steps .step .line { width: 2px; height: 34px; background: var(--secondary); }
#jumbo-steps .step .content { display: flex; align-items: center; gap: 12px; }
#jumbo-steps .step .content svg path { fill: var(--main-color); }
#jumbo-steps .step h3 { font-size: 1rem; color: var(--text); }

/* ============================================================ HOME CONTENT */
.home-content { padding: 0; }
.center { text-align: left; }
.col-md-12 { width: 100%; }
.col-12 { width: 100%; }

.home-section.static { padding: 56px 0 20px; }
.home-section .title h1 {
  font-size: 2rem; margin-bottom: 22px; color: var(--main-color);
  text-align: center;
}
.home-section .content { max-width: 900px; margin: 0 auto; }
.home-section .content h2 { font-size: 1.5rem; margin: 30px 0 12px; color: var(--text); }
.home-section .content h3 { font-size: 1.2rem; margin: 26px 0 10px; color: var(--main-dark); }
.home-section .content p  { color: var(--text-soft); margin-bottom: 14px; }
.home-section .content ul,
.home-section .content ol { margin: 0 0 16px 22px; color: var(--text-soft); }
.home-section .content li { margin-bottom: 8px; }
.home-section .content strong { color: var(--text); }

/* ============================================================ FAQ */
.container > h2 { text-align: center; font-size: 1.8rem; margin: 40px 0 10px; color: var(--text); }
.faq { width: 100%; max-width: 900px; margin: 10px auto 30px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 12px; overflow: hidden; background: #fff;
}
.faq-title {
  padding: 18px 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; transition: background .15s;
}
.faq-title:hover { background: var(--light-bg); }
.faq-title h3 { font-size: 1.02rem; color: var(--text); font-weight: 600; }
.faq-title::after { content: "+"; font-size: 1.5rem; color: var(--main-color); line-height: 1; }
.faq-item.open .faq-title { background: var(--light-bg); }
.faq-item.open .faq-title h3 { color: var(--main-color); }
.faq-item.open .faq-title::after { content: "\2212"; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; padding: 0 22px; }
.faq-item.open .faq-content { max-height: 400px; padding: 0 22px 20px; }
.faq-content p { color: var(--text-soft); }

/* ============================================================ APPLICATION PAGE */
.application-wrap { background: var(--light-bg); min-height: 70vh; padding: 48px 0; }
.application-inner {
  max-width: 900px; margin: 0 auto; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 6px 26px rgba(82,82,82,.08); padding: 34px;
}
.application-inner h1 { font-size: 1.9rem; color: var(--main-color); margin-bottom: 8px; text-align: center; }
.application-inner .sub { text-align: center; color: var(--text-soft); margin-bottom: 26px; }
#visa-form, #visa-status { min-height: 640px; }
#visa-form iframe, #visa-status iframe { width: 100%; min-height: 640px; border: 0; border-radius: 12px; }

/* ============================================================ SIMPLE PAGES */
.page { padding: 50px 0; }
.page h1 { font-size: 2rem; color: var(--main-color); margin-bottom: 10px; }
.page .updated { color: var(--text-soft); margin-bottom: 24px; }
.page h2 { font-size: 1.3rem; margin: 26px 0 10px; color: var(--main-dark); }
.page p, .page li { color: var(--text-soft); margin-bottom: 12px; }
.page ul { margin-left: 22px; }
.required { color: var(--red); font-weight: 700; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #ccc9bf; border-radius: 8px; font-size: 1rem; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--main-color); box-shadow: 0 0 0 3px rgba(0,155,59,.15); }

/* ============================================================ FOOTER */
#footer { background: var(--text); color: #d9d9d9; margin-top: 40px; }
#footer .footer-container { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 48px; padding-bottom: 24px; }
#footer #first  { flex: 1 1 340px; }
#footer #second { flex: 1 1 200px; }
#footer #third  { flex: 1 1 260px; }

#footer .v-logo .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#footer .v-logo .logo .img { width: 46px; height: 32px; background-size: cover; background-position: center; border-radius: 4px; }
#footer .v-logo .header-title { color: #fff; font-weight: 800; }
#footer .v-logo .description { color: #b9b9b9; font-size: .8rem; }

#footer .ssl { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: .82rem; color: #c4c4c4; max-width: 340px; }
#footer .ssl img { flex: none; width: auto; height: 46px; max-width: 120px; display: block; }
#footer .payment-services { display: flex; flex-wrap: wrap; gap: 8px; }
#footer .payment-service .img { width: 54px; height: 34px; border-radius: 5px; object-fit: contain; }

#footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
#footer ul { list-style: none; }
#footer #second li { margin-bottom: 9px; }
#footer a { color: #cfcfcf; }
#footer a:hover { color: var(--secondary); }
#footer #third p { color: #b9b9b9; font-size: .9rem; margin-bottom: 12px; }
#footer #third strong { color: #e6e6e6; }

#legal { border-top: 1px solid #6f6f6f; padding: 18px 0 30px; }
#legal small { color: #a8a8a8; font-size: .78rem; line-height: 1.5; }
#legal span { display: block; margin-top: 6px; }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  #jumbo-left, #jumbo-right { width: 100%; }
  #jumbo-left { min-height: 380px; }
}
@media (max-width: 720px) {
  #header .right #contact, #header .right #languages { display: none; }
  #nav-toggle { display: block; }
  #header .right { gap: 12px; }
  #mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 14px 20px; }
  #mobile-menu.open { display: block; }
  #mobile-menu a { display: block; padding: 10px 0; color: var(--text); font-weight: 600; }
  #jumbo-left-content, #jumbo-right { padding: 30px; }
}
@media (min-width: 721px) { #mobile-menu { display: none; } }
