/* ============================================================
   ThinkRadikal Technologies — Component Styles
   css/components.css
   ============================================================ */

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(8,12,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo img {
  width: 180px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey);
  letter-spacing: 0.4px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-blue);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__hamburger span {
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  display: block;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(8,12,26,0.97);
  backdrop-filter: blur(20px);
  padding: var(--space-6) var(--space-6) var(--space-7);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 999;
  border-bottom: 1px solid var(--color-border);
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.nav__mobile-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-grey-light);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover { color: var(--color-white); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 15% 50%, rgba(0,85,255,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 85% 25%, rgba(255,0,34,0.06) 0%, transparent 55%),
    linear-gradient(160deg, #080C1A 0%, #0D1530 60%, #080C1A 100%);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,85,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,85,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-10) 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  animation: fadeUp 0.7s ease both;
}

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero__title .accent-blue { color: var(--color-blue); }
.hero__title .accent-red  { color: var(--color-red); }

.hero__body {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: var(--space-7);
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-grey);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-blue));
  animation: scrollLine 1.5s ease infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: var(--space-7) var(--space-6);
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: background var(--transition-base);
}

.stat-item:last-child { border-right: none; }

.stat-item:hover { background: rgba(0,85,255,0.04); }

.stat-item__num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: var(--color-blue);
  display: block;
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-item__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-grey);
  font-family: var(--font-mono);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-blue);
}

.product-card:hover::after { opacity: 1; }

.product-card--featured {
  background: linear-gradient(135deg, rgba(0,85,255,0.09), rgba(0,26,102,0.18));
  border-color: rgba(0,85,255,0.28);
  grid-column: 1 / -1;
}

.product-card--featured::after {
  opacity: 1;
  background: linear-gradient(90deg, var(--color-blue), var(--color-red), transparent);
}

.product-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0,85,255,0.12);
  border: 1px solid rgba(0,85,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.product-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: var(--space-5);
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

/* Featured layout */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.feature-list__item:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.feature-list__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,85,255,0.15);
  border: 1px solid rgba(0,85,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list__check svg {
  width: 11px; height: 11px;
}

.feature-list__text {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

/* ── WHY CARD ── */
.why-card {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.why-card:hover {
  border-color: var(--color-border-2);
  background: rgba(0,85,255,0.05);
  transform: translateY(-4px);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: rgba(0,85,255,0.18);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.why-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.why-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── ABOUT FEATURE ── */
.about-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  background: var(--color-surface);
}

.about-feature:hover {
  border-color: var(--color-border-2);
  background: rgba(0,85,255,0.04);
}

.about-feature__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0,85,255,0.12);
  border: 1px solid rgba(0,85,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-feature__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-body);
}

.about-feature__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── CONTACT ── */
.contact-box {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 600px;
  margin: 0 auto;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row:last-of-type { border-bottom: none; }

.contact-row__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0,85,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-grey);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.contact-row__value {
  font-size: 15px;
  color: var(--color-text);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-9) 0 var(--space-8);
}

.footer__logo img {
  width: 160px;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: var(--space-5);
}

.footer__col-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  font-family: var(--font-mono);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: 14px;
  color: var(--color-grey);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-white); }

.footer__bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-grey);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-link {
  font-size: 13px;
  color: var(--color-grey);
  transition: color var(--transition-fast);
}

.footer__bottom-link:hover { color: var(--color-white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 0 var(--space-6); }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--color-border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--color-border); border-right: none; }
}

@media (max-width: 640px) {
  .nav { padding: 0 var(--space-5); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats-bar__inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat-item:last-child { border-bottom: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .contact-box { padding: var(--space-6); }
}

/* ── CONTACT FORM (inline expand) ── */
.contact-form-wrap {
  max-width: 640px;
  margin: var(--space-7) auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px);
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1),
              opacity    0.4s ease,
              transform  0.4s ease;
  pointer-events: none;
}

.contact-form-wrap.open {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border-2);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.contact-form__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-3));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-grey);
  font-family: var(--font-mono);
}

.form-group label .required {
  color: var(--color-red);
  margin-left: 2px;
}

.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-white);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--color-grey);
  opacity: 0.7;
}

.form-control:focus {
  border-color: var(--color-blue);
  background: rgba(0,85,255,0.07);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.15);
}

.form-control:focus-visible {
  outline: none;
}

.form-control.error {
  border-color: var(--color-red);
  background: rgba(255,0,34,0.05);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select.form-control option {
  background: #0D1530;
  color: var(--color-white);
}

.form-error {
  font-size: 12px;
  color: var(--color-red-light);
  margin-top: 2px;
  display: none;
}

.form-error.visible { display: block; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.form-actions__note {
  font-size: 12px;
  color: var(--color-grey);
}

.form-actions__note a {
  color: var(--color-blue-pale);
  text-decoration: underline;
}

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-7) var(--space-5);
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.form-success.visible { display: flex; }

.form-success__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,85,255,0.15);
  border: 2px solid var(--color-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
}

.form-success__body {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 340px;
  line-height: 1.7;
}

/* ── Toggle button states ── */
.btn-send-toggle[aria-expanded="true"] {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.25);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: var(--space-5); }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { text-align: center; justify-content: center; }
}

/* ── CONTACT INFO GRID ── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.cinfo-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,85,255,0.18);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.cinfo-card:hover {
  border-color: rgba(0,85,255,0.35);
  background: rgba(0,85,255,0.06);
}

.cinfo-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cinfo-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8A95B0;
  font-family: 'DM Mono', monospace;
  margin-bottom: 4px;
}

.cinfo-value {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.cinfo-value a {
  color: #99BBFF;
  transition: color 0.2s;
}
.cinfo-value a:hover { color: #ffffff; }

/* ── TOGGLE BUTTON WRAP ── */
.contact-toggle-wrap {
  text-align: center;
  margin-bottom: 28px;
}

/* ── EXPANDABLE FORM WRAPPER ── */
.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    max-height 0.6s cubic-bezier(0.4,0,0.2,1),
    opacity    0.35s ease,
    transform  0.35s ease;
  pointer-events: none;
}

.contact-form-wrap.open {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ── FORM CARD ── */
.contact-form {
  background: rgba(13,21,48,0.9);
  border: 1px solid rgba(0,85,255,0.28);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-header { margin-bottom: 28px; }

.cf-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.cf-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── FORM ROWS ── */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cf-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8A95B0;
  font-family: 'DM Mono', monospace;
}

.cf-req { color: #FF0022; margin-left: 2px; }

.cf-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,85,255,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #ffffff;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.cf-input::placeholder { color: rgba(138,149,176,0.7); }

.cf-input:focus {
  border-color: #0055FF;
  background: rgba(0,85,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.18);
}

.cf-input.cf-invalid {
  border-color: #FF0022;
  background: rgba(255,0,34,0.05);
}

.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.cf-select option {
  background: #0D1530;
  color: #ffffff;
}

.cf-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.cf-error {
  font-size: 12px;
  color: #FF6B80;
  display: none;
  margin-top: -2px;
}

.cf-error.show { display: block; }

/* ── FORM ACTIONS ── */
.cf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,85,255,0.15);
  flex-wrap: wrap;
}

.cf-privacy {
  font-size: 12px;
  color: #8A95B0;
}

.cf-privacy a { color: #99BBFF; text-decoration: underline; }

.cf-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Submit loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: cf-spin 0.7s linear infinite;
}

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

/* ── SUCCESS STATE ── */
.cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px;
}

.cf-success.show { display: flex; }

.cf-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,85,255,0.15);
  border: 2px solid #0055FF;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #0055FF;
  animation: cf-pop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes cf-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.cf-success__title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: #ffffff;
}

.cf-success__body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 380px;
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .contact-info-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .cf-actions { flex-direction: column; align-items: stretch; }
  .cf-btns { flex-direction: column; }
  .cf-btns .btn { width: 100%; justify-content: center; }
}
