/* =========================================
   1. Variables & Base Styles
   ========================================= */
:root {
  --primary-color: #1a4b8c;
  --secondary-color: #e6f0ff;
  --accent-color: #0a2e5c;
  --text-color: #333;
  --light-text: #fff;
  --light-bg: #f8f9fa;
  --dark-bg: #0a2e5c;
  --border-color: #ddd;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* =========================================
     2. Global Styles
     ========================================= */
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.center {
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  background-color: var(--accent-color);
  /* transform: translateY(-2px); */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body:has(.mask[style*='flex']) {
  overflow: hidden;
}

.disclaimer-popup {
  background-color: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.disclaimer-popup h2 {
  background-color: var(--primary-color);
  color: #fff;
  margin: 0;
  padding: 20px;
  font-size: 24px;
  text-align: center;
}

.popup-content {
  padding: 20px 30px;
  overflow-y: auto;
  max-height: 55vh;
}

.popup-content h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 20px 0 10px;
}

.popup-content p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.agreement-section {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  position: relative;
  padding-left: 35px;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
  height: 22px;
  width: 22px;
  background-color: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
}

.checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.popup-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-secondary {
  background-color: #a0adb8;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
  background-color: var(--primary-color);
}

@media (max-width: 768px) {
  .disclaimer-popup {
    max-width: 95%;
  }

  .popup-content {
    padding: 15px 20px;
  }

  .agreement-section {
    padding: 15px 20px;
  }

  .checkbox-container {
    font-size: 14px;
  }
}

/* =========================================
   4. Nav Header
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px 20px 20px;
  max-width: 2600px;
}

.logo a {
  font-size: 0;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.logo a:hover {
  color: var(--accent-color);
}

.logo a img {
  display: block;
  width: auto;
  height: 26px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover span {
  background-color: var(--accent-color);
}
