/* ═══════════════════════════════════════════════════════
   REGISTER — register.css
   Updated header/hero to match advertisements.css style
   Laguna BelAir 4 HOA
═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --green-900: #062e22;
  --green-800: #0a4d3c;
  --green-700: #0e6650;
  --green-600: #138a6a;
  --green-400: #3dbe92;
  --green-200: #a8e6ce;
  --green-100: #d4f3e7;
  --green-50:  #edfaf4;

  --warm-50:   #faf9f6;
  --warm-100:  #f2f0eb;
  --warm-200:  #e4e0d8;

  --neutral-900: #1a1a1a;
  --neutral-700: #3d3d3d;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e9eaec;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;

  --red-600:   #c0392b;
  --red-50:    #fef2f2;
  --amber-600: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 12px 40px rgba(10,77,60,.14);

  --radius:    14px;
  --radius-sm: 8px;

  --transition: .2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV (updated to match advertisements.css)
═══════════════════════════════════════════════════════ */
.top-header-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .8; }
.logo-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.header-center-wrapper {
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.navbar-two-rows {
  display: flex;
  flex-direction: column;
  min-width: 680px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

.navbar-top-row a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}

.navbar-top-row a:hover { background: var(--green-50); }

.nav-sep {
  color: var(--neutral-300);
  font-size: 11px;
}

.navbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--green-800);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition);
}

.nav-link:hover,
.dropdown:hover > .dropdown-toggle {
  background: var(--green-50);
}

.nav-link.active,
a.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 8px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-800);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile dropdown toggle via JS */
.dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}

.dropdown-menu a:hover {
  background: var(--neutral-50);
  border-left-color: var(--green-800);
  padding-left: 21px;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION (matching advertisements.css)
═══════════════════════════════════════════════════════ */
.hero-section {
  background-image: url('BG.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,46,34,.82) 0%, rgba(10,77,60,.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  max-width: 720px;
  letter-spacing: .2px;
}

/* ========================================
REGISTRATION SECTION
======================================== */
.register-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  background: var(--warm-50);
  position: relative;
}

/* Decorative Leaves - Minimalist */
.leaf-decoration {
  position: absolute;
  font-size: 100px;
  color: rgba(10, 77, 60, 0.08);
  z-index: 0;
  pointer-events: none;
}

.leaf-left-1 {
  top: 120px;
  left: 50px;
  transform: rotate(-30deg);
  font-size: 120px;
}

.leaf-left-2 {
  top: 450px;
  left: 70px;
  transform: rotate(-50deg);
  font-size: 90px;
}

.leaf-left-3 {
  bottom: 100px;
  left: 60px;
  transform: rotate(-20deg);
  font-size: 110px;
}

.leaf-right-1 {
  top: 150px;
  right: 50px;
  transform: rotate(30deg) scaleX(-1);
  font-size: 115px;
}

.leaf-right-2 {
  top: 550px;
  right: 70px;
  transform: rotate(45deg) scaleX(-1);
  font-size: 95px;
}

.leaf-right-3 {
  bottom: 80px;
  right: 60px;
  transform: rotate(25deg) scaleX(-1);
  font-size: 125px;
}

.register-container {
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.register-box {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 40px;
}

/* Registration Header */
.register-header {
  text-align: center;
  margin-bottom: 25px;
}

.register-header i {
  font-size: 48px;
  color: #0a4d3c;
  margin-bottom: 15px;
}

.register-header h1 {
  color: #0a4d3c;
  font-size: 28px;
  margin-bottom: 12px;
}

.register-header p {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Registration Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Section Headings */
.section-heading {
  color: #0a4d3c;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f8f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading i {
  font-size: 20px;
}

.form-section {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.single-column {
  grid-template-columns: 1fr;
  max-width: 48%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #0a4d3c;
  font-size: 14px;
}

.required {
  color: #dc3545;
  margin-left: 2px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
  border-color: #0a4d3c;
  box-shadow: 0 0 0 3px rgba(10, 77, 60, 0.1);
}

.form-group select {
  cursor: pointer;
  background-color: white;
}

/* Password Input with Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #0a4d3c;
}

.toggle-password i {
  font-size: 16px;
}

/* File Upload Section */
.file-upload-section {
  background: #f0f8f5;
  border: 2px dashed #0a4d3c;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.file-upload-section h3 {
  color: #0a4d3c;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-upload-section h3 i {
  font-size: 18px;
}

.file-upload-description {
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.file-upload-examples {
  background: white;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
  text-align: left;
}

.file-upload-examples h4 {
  color: #0a4d3c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.file-upload-examples ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
  font-size: 13px;
}

.file-upload-examples li {
  margin-bottom: 5px;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  /* display: none; */
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border: 2px solid #0a4d3c;
  color: #0a4d3c;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload-label:hover {
  background: #0a4d3c;
  color: white;
}

.file-upload-label i {
  font-size: 16px;
}

.file-name-display {
  margin-top: 10px;
  color: #0a4d3c;
  font-size: 13px;
  font-weight: 500;
}

.file-upload-note {
  color: #666;
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}

.confidentiality-note {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 12px;
  margin-top: 15px;
  border-radius: 4px;
}

.confidentiality-note i {
  color: #ffc107;
  margin-right: 8px;
}

.confidentiality-note p {
  color: #666;
  font-size: 12px;
  margin: 0;
}

/* Conditional Field */
.conditional-field {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #fffbf0;
  border: 1px solid #ffe89e;
  border-radius: 8px;
}

.conditional-field.show {
  display: block;
}

.conditional-field label {
  color: #856404;
}

/* ========================================
ADDRESS ROWS STYLES
======================================== */
.address-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.address-label {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.address-label i {
  color: #0a4d3c;
  font-size: 14px;
}

#addressList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s;
}

.address-input:focus {
  border-color: #0a4d3c;
  box-shadow: 0 0 0 3px rgba(10, 77, 60, 0.1);
}

.add-address-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #0a4d3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.add-address-btn:hover {
  background: #0d5f4a;
  transform: scale(1.08);
}

.remove-address-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: none;
  border: 2px solid #e0e0e0;
  color: #999;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-address-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}

/* Terms and Declaration */
.terms-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0a4d3c;
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-checkbox label {
  color: #333;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.6;
}

/* Submit Button */
.submit-btn {
  background: #0a4d3c;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #0d5f4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 77, 60, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.submit-btn i {
  font-size: 16px;
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.login-link p {
  color: #666;
  font-size: 14px;
}

.login-link a {
  color: #0a4d3c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.login-link a:hover {
  color: #0d5f4a;
  text-decoration: underline;
}

/* Success Message */
.success-message {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.success-message.show {
  display: block;
}

.success-message i {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
}

.success-message h3 {
  color: #155724;
  font-size: 20px;
  margin-bottom: 10px;
}

.success-message p {
  color: #155724;
  font-size: 14px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--green-800);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: .88rem;
  line-height: 1.6;
}

.footer-links li i {
  margin-right: 7px;
  color: rgba(255,255,255,.7);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #b8e6d5;
  padding-left: 4px;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo-link {
  display: block;
  transition: opacity .25s;
}

.footer-logo-link:hover {
  opacity: .8;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
}

/* ========================================
RESPONSIVE DESIGN
======================================== */
@media (max-width: 1060px) {
  .top-header-container {
    flex-direction: column;
    padding: 14px 16px;
  }
  .header-center-wrapper {
    width: 100%;
  }
  .navbar-two-rows {
    min-width: auto;
    width: 100%;
  }
  .navbar-top-row {
    justify-content: center;
  }
  .navbar-bottom-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-logo-section {
    grid-column: 1/-1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 280px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 90%;
  }
  .register-section {
    padding: 40px 20px 40px;
  }
  .nav-sep {
    display: none;
  }
  .navbar-top-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .navbar-bottom-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section h3 {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-logo-section {
    justify-content: center;
  }
  .register-box {
    padding: 30px 20px;
  }
  .register-header h1 {
    font-size: 24px;
  }
  .register-header i {
    font-size: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row.single-column {
    max-width: 100%;
  }
  .leaf-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo-image {
    width: 100px;
  }
  .navbar-top-row a {
    padding: 3px 6px;
    font-size: 11px;
  }
  .navbar-bottom-row .nav-link,
  .navbar-bottom-row .dropdown-toggle {
    font-size: 11px;
    padding: 5px 7px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-sub {
    font-size: 12px;
  }
  .section-heading {
    font-size: 16px;
  }
  .submit-btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════════════
   VALIDATION TOAST ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}