/* Cyprus Advisor Portal — "Legal Chambers" aesthetic */

:root {
  --navy: #141b2d;
  --navy-light: #1e2740;
  --slate: #3d4663;
  --slate-light: #6b7394;
  --gold: #b8964e;
  --gold-light: #d4b06a;
  --gold-muted: rgba(184, 150, 78, 0.12);
  --ivory: #f8f6f1;
  --ivory-warm: #f3f0e8;
  --charcoal: #2c2c2c;
  --text: #1c1c1e;
  --text-secondary: #5c5c6b;
  --border: #d8d4cc;
  --border-light: #e8e5de;
  --white: #ffffff;
  --error: #b44a4a;
  --success: #4a7c59;
  --radius: 3px;
  --shadow-sm: 0 1px 3px rgba(20, 27, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 27, 45, 0.08);
  --shadow-lg: 0 8px 32px rgba(20, 27, 45, 0.1);
  --transition: 0.25s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

/* — Topbar — */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(184, 150, 78, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.topbar.scrolled {
  box-shadow: 0 2px 24px rgba(20, 27, 45, 0.25);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.topbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ivory);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar-brand span {
  color: var(--gold);
}

.topbar-contact {
  font-size: 13px;
  color: var(--slate-light);
}

.topbar-contact a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

.topbar-contact a:hover {
  color: var(--ivory);
}

/* — Cancelled Banner — */

.banner-cancelled {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--error);
  color: var(--white);
  text-align: center;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.4s ease;
}

.banner-cancelled .close-banner {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* — Hero — */

.hero {
  padding: 140px 32px 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 119px,
      rgba(184, 150, 78, 0.03) 119px,
      rgba(184, 150, 78, 0.03) 120px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 119px,
      rgba(184, 150, 78, 0.03) 119px,
      rgba(184, 150, 78, 0.03) 120px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid rgba(184, 150, 78, 0.25);
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 56px);
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--slate-light);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-block;
  padding: 13px 32px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

/* — Section Layout — */

.section {
  padding: 72px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* — Situation Accordion — */

.situation-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.situation-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.situation-toggle:hover {
  background: var(--ivory-warm);
}

.situation-toggle .chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--slate-light);
  flex-shrink: 0;
  margin-left: 16px;
}

.situation-toggle.open .chevron {
  transform: rotate(180deg);
}

.situation-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.situation-content-inner {
  padding: 0 28px 28px;
  border-top: 1px solid var(--border-light);
}

.situation-content-inner ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.situation-content-inner li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.situation-content-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.situation-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--gold-muted);
  border-left: 2px solid var(--gold);
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* — Tier Cards — */

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.tier-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.tier-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.tier-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 12px;
}

.tier-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.tier-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1;
}

.tier-price-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.tier-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.tier-features li.included::before {
  background: var(--gold);
  box-shadow: inset 0 0 0 2px var(--white);
}

.tier-ideal {
  font-size: 13px;
  color: var(--slate);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.tier-ideal strong {
  color: var(--text);
}

/* — Registration Form — */

.form-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 32px;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-group label .optional {
  color: var(--text-secondary);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7394' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Tier Radio Selection */

.tier-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.tier-radio {
  position: relative;
}

.tier-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-radio-label {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--ivory);
}

.tier-radio-label:hover {
  border-color: var(--gold);
}

.tier-radio input:checked + .tier-radio-label {
  border-color: var(--gold);
  background: var(--gold-muted);
  box-shadow: 0 0 0 1px var(--gold);
}

.tier-radio-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.tier-radio-price {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* Submit */

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--navy-light);
  border-color: var(--gold);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(248, 246, 241, 0.3);
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-error {
  display: none;
  padding: 12px 16px;
  background: #fdf0f0;
  border: 1px solid #e8c4c4;
  border-radius: var(--radius);
  color: var(--error);
  font-size: 14px;
  grid-column: 1 / -1;
}

.form-error.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* — Footer — */

.footer {
  background: var(--navy);
  padding: 48px 32px;
  text-align: center;
  border-top: 1px solid rgba(184, 150, 78, 0.1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--slate-light);
  margin-bottom: 12px;
}

.footer-brand a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-contact {
  font-size: 13px;
  color: var(--slate-light);
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-legal {
  font-size: 12px;
  color: var(--slate);
  margin-top: 16px;
  line-height: 1.5;
}

/* — Responsive — */

@media (max-width: 720px) {
  .tiers {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.half {
    grid-column: 1;
  }

  .tier-select {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .section {
    padding: 56px 24px;
  }

  .form-section {
    padding: 56px 24px;
  }

  .topbar-contact {
    display: none;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  .tier-card {
    padding: 28px 24px;
  }

  .tier-price {
    font-size: 32px;
  }

  .situation-toggle {
    padding: 18px 20px;
    font-size: 14px;
  }

  .situation-content-inner {
    padding: 0 20px 20px;
  }
}
