:root {
  --fm-green-deep: #12261b;
  --fm-green: #16311f;
  --fm-green-panel: #0e2016;
  --fm-gold: #c9a24b;
  --fm-gold-soft: #d9bd7c;
  --fm-cream: #f2eee2;
  --fm-cream-input: #e9e3d2;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Jost", sans-serif;
  color: var(--fm-cream);
  background: var(--fm-green-deep) url("../images/bg.jpg") no-repeat center
    top;
  background-size: cover;
}

/* ===== Hero background ===== */
.fm-hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.fm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 26, 16, 0.75) 0%,
      rgba(10, 26, 16, 0.35) 22%,
      rgba(10, 26, 16, 0.25) 55%,
      rgba(8, 20, 13, 0.85) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 16, 10, 0.55) 0%,
      rgba(6, 16, 10, 0.15) 45%,
      rgba(6, 16, 10, 0.55) 100%
    );
  z-index: 1;
}

.fm-hero > .container-xl {
  position: relative;
  z-index: 2;
}

/* ===== Header / logo ===== */
.fm-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.fm-eyebrow-title {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.55em;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fm-cream);
  opacity: 0.9;
}

.fm-brand-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
}

.fm-divider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
.fm-divider-dot .line {
  height: 1px;
  width: 70px;
  background: rgba(217, 189, 124, 0.6);
}
.fm-divider-dot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fm-gold);
}

/* ===== Left content column ===== */
.fm-eyebrow {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--fm-gold-soft);
  font-weight: 500;
}

.fm-heading-xl {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: #fff;
}

.fm-rule {
  width: 70px;
  height: 2px;
  background: var(--fm-gold);
  border: none;
  opacity: 1;
}

.fm-body-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(242, 238, 226, 0.92);
  font-weight: 300;
}

.fm-gold-line {
  font-family: "Cormorant Garamond", serif;
  color: var(--fm-gold);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
}

.fm-feature-icon {
  --size: 45px;
  width: var(--size);
  height: var(--size);
  border: 1px solid var(--fm-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fm-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.fm-feature-icon .bi {
  line-height: 1;
}

.fm-feature-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.1rem;
}

.fm-feature-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(242, 238, 226, 0.85);
  margin-bottom: 0;
}

.fm-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--fm-gold-soft);
  font-size: 1.15rem;
  position: relative;
  padding-block: 0.5rem;
}
.fm-tagline:before,
.fm-tagline:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #ffffff;
  background: linear-gradient(
    260deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 56%
  );
}
.fm-tagline:before {
  top: 0;
}
.fm-tagline:after {
  bottom: 0;
}

/* ===== Venue announcement ===== */
.fm-venue-box {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  border: 1px solid var(--fm-gold);
  background: rgba(201, 162, 75, 0.08);
  padding: 0.6rem;
  margin-top: 1rem;
}
.fm-venue-title {
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0;
  line-height: 1;
}
.fm-venue-sub {
  font-style: italic;
  font-weight: 300;
  font-size: 0.75rem;
  margin-bottom: 0;
  line-height: 1;
}

.fm-chapter-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: var(--fm-gold);
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  color: var(--fm-green-deep);
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
.fm-chapter-link:hover {
  background: var(--fm-gold-soft);
  color: var(--fm-green-deep);
  transform: translateY(-2px);
}

.fm-chapter-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 40;
  margin-bottom: 0;
  background: rgba(18, 38, 27, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(201, 162, 75, 0.45);
  color: var(--fm-cream);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.fm-chapter-badge:hover {
  background: rgba(18, 38, 27, 0.75);
  border-color: var(--fm-gold);
  color: var(--fm-gold-soft);
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .fm-chapter-badge {
    top: auto;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 575.98px) {
  .fm-chapter-badge {
    bottom: 12px;
    right: 12px;
    padding: 0.5rem 0.9rem;
    font-size: 0.68rem;
  }
}

/* ===== Registration card ===== */
.fm-card {
  background: linear-gradient(180deg, #f5f1e6 0%, #eee8d8 100%);
  border: 1px solid var(--fm-gold);
  border-radius: 14px;
  padding: 2.4rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.fm-card-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  color: var(--fm-green);
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  letter-spacing: 0.02em;
}

.fm-card-divider {
  width: 60px;
  height: 1px;
  background: var(--fm-gold);
  margin: 0.85rem auto 1rem;
  position: relative;
}
.fm-card-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fm-gold);
}

.fm-card-sub {
  font-size: 0.92rem;
  color: #3a3a30;
  font-weight: 300;
  line-height: 1.6;
}

.fm-form-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--fm-green);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.fm-form-control {
  background: var(--fm-cream-input);
  border: 1px solid #d8cfb4;
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-family: "Jost", sans-serif;
  color: #3a3a30;
}
.fm-form-control::placeholder {
  color: #8a8474;
  font-weight: 300;
}
.fm-form-control:focus {
  background: #fff;
  border-color: var(--fm-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 75, 0.25);
  color: #2a2a22;
}

.fm-form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.1rem 0;
}
.fm-form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  background-color: var(--fm-cream-input);
  border: 1px solid #d8cfb4;
}
.fm-form-check-input:checked {
  background-color: var(--fm-green);
  border-color: var(--fm-green);
}
.fm-form-check-input:focus {
  border-color: var(--fm-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 75, 0.25);
}
.fm-form-check-label {
  font-size: 0.82rem;
  font-weight: 300;
  color: #3a3a30;
  line-height: 1.5;
}
.fm-form-check-label a {
  color: var(--fm-green);
  font-weight: 600;
  text-decoration: underline;
}
.form-check .form-check-input {
  margin-left: 0;
}

/* Validation error styles */
.fm-error-message {
  display: none;
  font-size: 0.75rem;
  color: #dc3545;
  margin-top: 0.35rem;
  font-weight: 400;
}
.fm-error-message.show {
  display: block;
}
.fm-form-control.is-invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}
.fm-form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.fm-form-check-input.is-invalid {
  border-color: #dc3545;
}
.fm-form-check-input.is-invalid ~ .fm-form-check-label {
  color: #3a3a30;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast-notification {
  min-width: 320px;
  max-width: 500px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.4s ease-out;
  opacity: 0;
  transform: translateX(400px);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.hide {
  animation: slideOutRight 0.4s ease-in forwards;
}

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

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

.toast-notification.success {
  background: linear-gradient(135deg, #1e5128 0%, #2d7a3e 100%);
  border: 1px solid #3d9456;
}

.toast-notification.error {
  background: linear-gradient(135deg, #8b1e1e 0%, #b32424 100%);
  border: 1px solid #d32f2f;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.toast-notification.success .toast-icon {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 2px solid #4caf50;
}

.toast-notification.error .toast-icon {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 2px solid #f44336;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #fff;
}

@media (max-width: 575.98px) {
  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  .toast-notification {
    min-width: auto;
    width: 100%;
  }
}

/* Country code input styles */
.fm-country-code-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.fm-phone-country-field {
  flex: 0 0 86px;
  position: relative;
}
.fm-phone-mobile-field {
  flex: 1 1 0;
  min-width: 0;
}
.fm-phone-country-field .fm-form-control,
.fm-phone-mobile-field .fm-form-control {
  width: 100%;
}
.fm-country-code-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fm-country-code-input:focus {
  background: #fff;
  border-color: var(--fm-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 75, 0.25);
}
.fm-country-code-input.is-invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}
.fm-country-code-input::placeholder {
  color: #8a8474;
  font-weight: 300;
}
.fm-mobile-input {
  flex: none;
}
.fm-country-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.5rem;
  background: var(--fm-cream-input);
  border: 1px solid #d8cfb4;
  border-radius: 6px;
  color: #3a3a30;
  font:
    500 0.9rem "Jost",
    sans-serif;
  cursor: pointer;
}
.fm-country-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 0;
  border: solid var(--fm-gold);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  color: var(--fm-gold);
}
.fm-country-select.is-open .fm-country-toggle::after {
  transform: rotate(225deg);
  margin: 3px 2px 0 0;
}
.fm-country-select.is-invalid .fm-country-toggle {
  border-color: #dc3545;
}
.fm-country-menu {
  display: none;
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  left: 0;
  width: 260px;
  max-height: 260px;
  padding: 10px;
  background: linear-gradient(180deg, #f5f1e6 0%, #eee8d8 100%);
  border: 1px solid var(--fm-gold);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.fm-country-select.is-open .fm-country-menu {
  display: block;
}
.fm-country-search {
  width: 100%;
  height: 38px;
  margin-bottom: 8px;
  padding: 0 0.7rem;
  background: var(--fm-cream-input);
  border: 1px solid #d8cfb4;
  border-radius: 6px;
  color: #3a3a30;
  font:
    400 0.82rem "Jost",
    sans-serif;
}
.fm-country-search::placeholder {
  color: #8a8474;
  font-weight: 300;
}
.fm-country-search:focus {
  outline: none;
  background: #fff;
  border-color: var(--fm-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 75, 0.25);
}
.fm-country-options {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}
.fm-country-options::-webkit-scrollbar {
  width: 6px;
}
.fm-country-options::-webkit-scrollbar-track {
  background: transparent;
}
.fm-country-options::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 75, 0.45);
  border-radius: 6px;
}
.fm-country-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  margin-bottom: 2px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #3a3a30;
  font:
    400 0.82rem "Jost",
    sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fm-country-option:hover {
  background: rgba(201, 162, 75, 0.14);
  border-left-color: var(--fm-gold);
}
.fm-country-option.is-selected {
  background: rgba(201, 162, 75, 0.22);
  border-left-color: var(--fm-gold);
  color: var(--fm-green);
  font-weight: 600;
}

.fm-btn-register {
  background: var(--fm-green);
  border: 1px solid var(--fm-green);
  color: #fff;
  font-family: "Jost", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.fm-btn-register:hover:not(:disabled) {
  background: #0d1f14;
  color: #fff;
  letter-spacing: 0.24em;
}
.fm-btn-register:disabled {
  background: transparent;
  border: 1px solid rgba(22, 49, 31, 0.3);
  color: rgba(58, 58, 48, 0.4);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ===== Bottom strip ===== */
.fm-footer-strip {
  /* background:#0e201660; */
  /* border-top:1px solid rgba(201,162,75,.25); */
  position: relative;
  z-index: 2;
}

.fm-strip-icon {
  color: var(--fm-gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fm-strip-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0;
}

.fm-strip-sub {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(242, 238, 226, 0.75);
  margin-bottom: 0;
}

/* ===== Get in touch footer ===== */
.fm-footer-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fm-footer-title-row .line {
  flex: 1 1 auto;
  max-width: 500px;
  height: 1px;
  background: rgba(201, 162, 75, 0.4);
}
.fm-footer-title {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--fm-gold);
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.fm-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fm-cream);
  text-decoration: none;
}
.fm-contact-item:hover {
  color: var(--fm-gold-soft);
}
.fm-contact-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--fm-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fm-gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fm-contact-text {
  font-size: 0.85rem;
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
}

.fm-footer-divider {
  width: 1px;
  height: 26px;
  background: rgba(201, 162, 75, 0.35);
  flex-shrink: 0;
}

.fm-follow-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--fm-gold);
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}
.fm-social-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--fm-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fm-gold);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}
.fm-social-icon:hover {
  background: var(--fm-gold);
  color: var(--fm-green-deep);
}

.fm-footer-credit {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(242, 238, 226, 0.55);
}

@media (max-width: 991.98px) {
  .fm-card {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .fm-footer-title-row .line {
    max-width: 60px;
  }
  .fm-contact-item,
  .fm-follow-wrap {
    width: 100%;
    max-width: 280px;
    justify-content: flex-start;
  }
  .fm-follow-wrap .fm-social-icon {
    order: 1;
  }
  .fm-follow-wrap .fm-follow-label {
    order: 2;
  }
}
