/* ================= ROOT THEME ================= */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #eef2ff, #f8fafc);
  color: var(--text-dark);
}

/* ================= LAYOUT ================= */
.container {
  max-width: 980px;
  margin: 40px auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}



.logo i {
  font-size: 26px;
}

.header h1 {
  font-size: 36px;
  margin: 16px 0 10px;
}

.subtitle {
  color: var(--text-light);
  font-size: 16px;
}

/* ================= FORM CARD ================= */
.form-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}

/* ================= FORM SECTIONS ================= */
.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}

.form-header p {
  color: var(--text-light);
}

.form-section {
  margin-top: 40px;
}

.form-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= INPUTS ================= */
.form-group {
  margin-bottom: 22px;
}

label {
  font-weight: 500;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  transition: 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

/* ================= ROW ================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ================= PHONE PREFIX ================= */
.input-with-prefix {
  display: flex;
}

.country-code {
  width: 120px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-with-prefix input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ================= RADIO & CHECKBOX ================= */
.radio-group,
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.radio-option input,
.checkbox-option input {
  display: none;
}

.radio-custom,
.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkbox-custom {
  border-radius: 6px;
}

.radio-option input:checked + .radio-custom {
  border-color: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.checkbox-option input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-option input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
}

/* ================= GDPR ================= */
.gdpr-consent {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.gdpr-consent a {
  color: var(--primary);
  text-decoration: none;
}

/* ================= SUBMIT ================= */
.form-actions {
  margin-top: 40px;
  text-align: center;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  padding: 16px 34px;
  font-size: 16px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
}

/* ================= SUCCESS ================= */
.success-message {
  background: white;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.success-icon {
  font-size: 50px;
  color: var(--success);
}

.success-message ul {
  list-style: none;
  padding: 0;
}

.success-message li {
  margin: 10px 0;
}

/* ================= FOOTER ================= */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

.footer-links a {
  margin: 0 10px;
  color: var(--text-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ================= ERRORS ================= */
.error-message {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 28px;
  }

  .form-container {
    padding: 25px;
  }
}

.install-btn {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: none;

  align-items: center;
  gap: 12px;

  padding: 14px 18px;
  border-radius: 14px;
  border: none;

  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);

  cursor: pointer;
  z-index: 999;
  animation: slideUp .4s ease;
}

.install-btn .icon {
  font-size: 22px;
}

.install-btn .text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.install-btn strong {
  font-size: 14px;
}

.install-btn small {
  font-size: 11px;
  opacity: .75;
}

/* Hover (desktop) */
.install-btn:hover {
  transform: translateX(-50%) scale(1.03);
  background: linear-gradient(135deg, #020617, #0f172a);
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .install-btn {
    width: calc(100% - 24px);
    bottom: 12px;
    justify-content: center;
  }
}


/* Container */
.gdpr-consent {
  margin-top: 16px;
}

/* Label wrapper */
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 14px;
  border-radius: 12px;

  background: #f8fafc;
  border: 1px solid #e2e8f0;

  cursor: pointer;
}

/* Hide native checkbox */
.checkbox-option input {
  display: none;
}

/* Custom checkbox */
.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;

  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

/* Checkmark */
.checkbox-option input:checked + .checkbox-custom {
  background: #0f172a;
  border-color: #0f172a;
}

.checkbox-option input:checked + .checkbox-custom::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Text */
.checkbox-label {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.checkbox-label a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

/* Error */
.error-message {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  display: none;
}

/* Show error */
.gdpr-consent.invalid .error-message {
  display: block;
}

/* Tablet & up */
@media (min-width: 768px) {
  .checkbox-option {
    padding: 16px 18px;
  }

  .checkbox-label {
    font-size: 14px;
  }
}


/* ===== MODERN EXPO FORM CSS ===== */

.form-container{
  max-width:720px;
  margin:20px auto;
  padding:24px;
  background:#ffffff;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.form-container h3{
  margin:26px 0 14px;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
  border-bottom:2px solid #e5e7eb;
  padding-bottom:6px;
}

/* FORM GROUP */
.form-group{
  margin-bottom:16px;
}

label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
  color:#1e293b;
}

/* INPUTS */
input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:14px;
  transition:.25s ease;
  background:#fff;
}

textarea{resize:vertical}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#0ea5e9;
  box-shadow:0 0 0 3px rgba(14,165,233,.18);
}

/* CHECKBOX GROUP */
.checkbox-group{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin:10px 0 18px;
}

.checkbox-group label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:10px;
  background:#f1f5f9;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:.2s;
}

.checkbox-group label:hover{
  background:#e0f2fe;
}

.checkbox-group input{
  accent-color:#0ea5e9;
}

/* CONDITIONAL BOX */
#consultingFields{
  margin-top:14px;
  padding:14px;
  border:1px dashed #cbd5f5;
  border-radius:10px;
  background:#f8fafc;
  display:grid;
  gap:10px;
}

/* ERROR */
.form-group.error input,
.form-group.error select,
.form-group.error textarea{
  border-color:#dc2626;
}

.error-message{
  display:none;
  font-size:12px;
  margin-top:4px;
  color:#dc2626;
}

/* SUBMIT */
#submitBtn{
  width:100%;
  margin-top:24px;
  padding:14px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#0ea5e9,#0284c7);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:.25s ease;
}

#submitBtn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(14,165,233,.35);
}

#submitBtn:disabled{
  opacity:.7;
  cursor:not-allowed;
}

/* MOBILE */
@media(max-width:480px){
  .form-container{
    margin:12px;
    padding:18px;
  }
  .checkbox-group{
    grid-template-columns:1fr;
  }
}

/* ===== MODERN CHECKBOX CARD FIX ===== */

.checkbox-group{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:14px;
  margin-top:12px;
}

/* Hide default checkbox */
.checkbox-group input[type="checkbox"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Card style */
.checkbox-group label{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:14px 12px;
  background:#f8fafc;
  border:2px solid #e5e7eb;
  border-radius:14px;
  font-size:14px;
  font-weight:600;
  color:#0f172a;
  text-align:center;
  cursor:pointer;
  transition:all .25s ease;
}

/* Hover */
.checkbox-group label:hover{
  border-color:#38bdf8;
  background:#f0f9ff;
  transform:translateY(-1px);
}

/* Selected state */
.checkbox-group input:checked + span,
.checkbox-group input:checked{
  display:none;
}

.checkbox-group label:has(input:checked){
  background:linear-gradient(135deg,#0ea5e9,#0284c7);
  color:#ffffff;
  border-color:#0284c7;
  box-shadow:0 8px 20px rgba(14,165,233,.35);
}

/* Check icon */
.checkbox-group label:has(input:checked)::after{
  content:"✔";
  position:absolute;
  top:8px;
  right:10px;
  font-size:12px;
  font-weight:700;
  background:#ffffff;
  color:#0284c7;
  width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Section spacing */
.form-container label:not(.checkbox-group label){
  margin-top:10px;
}

/* MOBILE */
@media(max-width:480px){
  .checkbox-group{
    grid-template-columns:1fr 1fr;
  }
}


.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
}

.error-message {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

/* ===== Purpose of Visit (Radio Cards) ===== */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.radio-group label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: #111827;
  transition: all 0.25s ease;
}

/* Hide default radio */
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5f5;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}

/* Inner dot */
.radio-group input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

/* Checked state */
.radio-group input[type="radio"]:checked {
  border-color: #2563eb;
}

.radio-group input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Card active */
.radio-group label:has(input[type="radio"]:checked) {
  background: #eef2ff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

/* Hover */
.radio-group label:hover {
  border-color: #93c5fd;
  background: #f1f5ff;
}

/* Mobile optimization */
@media (max-width: 480px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo image */
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}



@media (max-width: 480px) {
  .logo-img {
    height: 30px;
  }

  .logo span {
    font-size: 18px;
  }
}

/* Center logo section */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

/* Logo size */
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* ===== Admin Button (Top Right Sticky) ===== */
.admin-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 999px;

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}


/* Hover */
.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

/* Active click */
.admin-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* Focus (accessibility) */
.admin-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* Mobile tweak */
@media (max-width: 480px) {
  .admin-btn {
    top: 12px;
    right: 12px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ===== Footer Credit (Premium Style) ===== */
.footer-credit {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280; /* soft gray */
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-credit .credit-link {
  color: #6d28d9; /* premium violet */
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

/* underline animation */
.footer-credit .credit-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background: linear-gradient(90deg, #6d28d9, #9333ea);
  transition: width 0.3s ease;
}

.footer-credit .credit-link:hover {
  color: #9333ea;
}

.footer-credit .credit-link:hover::after {
  width: 100%;
}

/* Mobile polish */
@media (max-width: 576px) {
  .footer-credit {
    font-size: 13px;
    margin-top: 10px;
  }
}

