/* Base tokens */
:root {
  --bg: #ffffff;
  --blue-code: 61, 104, 205;
  --orange-code: 237, 157, 122;
  --pink-code: 224,91,156;
  --blue: rgb(var(--blue-code));
  --orange: rgb(var(--orange-code));
  --pink: rgb(var(--pink-code));
  --text: #111827;
  --muted: #6b7280;
  --headline: var(--blue);    /* hero title color */
  --accent: rgb(237, 157, 122);      /* accent + asterisks */
  --grid: rgb(237, 157, 122);        /* asterisks color */
  --card: #f8fafc;
  --border: rgba(var(--pink-code), 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
}

strong, b {
  font-weight: 700;
}


.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 20px 0 20px;
}
.logo { height: 240px; width: auto; background-color: white }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
}

.hero { margin: 40px 0 24px; }
.hero-title {
  margin: 0;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--headline);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.hand { font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.05em; letter-spacing: 0.01em; }
.hero-sub { color: var(--muted); margin: 0; }
.note { font-size: 1.05rem; }
.bg-white { background: #fff; display: inline-block;}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(320px, 480px);
  align-items: center; /* center vertically in viewport */
  gap: 0;
  min-height: 50vh;
}
.left { display: grid; grid-template-rows: auto 1fr; align-items: start; }
.left-logo { height: 240px; width: auto; margin-bottom: 24px; }
.center-hero { display: grid; gap: 12px; align-self: center; justify-items: center; text-align: center; }
.right { padding-left: 24px; }
.divider {
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(17,24,39,0.08), rgba(0,0,0,0));
}

.card {
  /*background: transparent;*/
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  backdrop-filter: blur(4px);
}
.frosted::before {
  /*background: rgba(255, 255, 255, 0.25);*/
  /*backdrop-filter: blur(10px);*/
  /*-webkit-backdrop-filter: blur(10px);*/
  /*border: 1px solid rgba(255, 255, 255, 0.18);*/
  /*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);*/
  /*position: relative;*/
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  /*border: var(--border-width) solid transparent;*/
  background: linear-gradient(red, blue) border-box;
  mask:
          linear-gradient(black, black) border-box,
          linear-gradient(black, black) padding-box;
  mask-composite: subtract;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .frosted {
    background: rgba(255, 255, 255, 0.8);
  }
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--pink)}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff; /* fields white */
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
}
.field input:focus,
.field textarea:focus { border-color: rgba(237, 157, 122, 0.6); box-shadow: 0 0 0 3px rgba(237,157,122,0.15); }
.field textarea::placeholder { color: rgba(var(--pink-code), 0.5)}
.hint { color: rgba(var(--pink-code), 0.5); display: block; margin-top: 6px; font-size: 0.9rem; }
.hp { position: absolute !important; left: -10000px !important; opacity: 0 !important; }

.actions { display: flex; align-items: center; gap: 12px; }
.btn {
  appearance: none;
  border: 0;
  background-color: rgb(var(--pink-code));
  color: white;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 100px;
}

.btn[disabled] {
  opacity: 0.8;
  cursor: progress;
}

.btn.loading {
  color: transparent;
}

.btn.loading::after {
  content: '*';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  animation: asterisk-spin 1s linear infinite;
}

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

/* Field validation errors */
.field-error {
  color: rgb(var(--blue-code));
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: none;
}

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

/* Form status styling */
#form-status {
  font-size: 0.95rem;
  color: var(--muted);
  display: block;
}

#form-status:not(:empty) {
  padding-bottom: 20px;
}

#form-status.ok {
  color: var(--blue);
  font-weight: 600;
}

#form-status.err {
  color: #ffb3b3;
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .06s ease, box-shadow .2s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
}

/* Hide floating social icons completely */
.social-float {
  display: none;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
  background: transparent;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.social-icon.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.social-icon.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-icon.instagram {
  border-color: #e4405f;
  color: #e4405f;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: transparent;
}

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

/* Social Section */
.mobile-social-section {
  display: block;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--pink-code), 0.2);
  text-align: left;
}

.social-heading {
  color: var(--pink);
  font-weight: 600;
  margin: 0 0 16px 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: left;
  gap: 16px;
}

.mobile-social-section .social-icon {
  width: 36px;
  height: 36px;
}

.mobile-social-section .social-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .divider { display: none; }
  .right { padding-left: 0; }
  .center-hero { justify-items: center; text-align: center; }
  .left-logo { justify-self: center; }
}
