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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #2d6bc0, #1f4f96);
  color: #ffffff;
  min-height: 100vh;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 80px;
}

.logo-text {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.btn-outline {
  background: #ffffff;
  color: #2d6bc0;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.hero {
  text-align: center;
  margin-top: 80px;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.card {
  background: #ffffff;
  width: 950px;
  max-width: 95%;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  color: #333333;
}

.form-box {
  display: flex;
  gap: 15px;
}

input {
  flex: 1;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #dddddd;
  font-size: 15px;
  transition: 0.3s;
}

input:focus {
  outline: none;
  border-color: #2d6bc0;
  box-shadow: 0 0 0 3px rgba(45, 107, 192, 0.15);
}

button {
  padding: 18px 30px;
  border: none;
  border-radius: 12px;
  background: #2d6bc0;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.result-box {
  margin-top: 25px;
  font-weight: bold;
}

.result-box a {
  color: #2d6bc0;
  text-decoration: none;
}

.toggle-advanced {
  margin-top: 15px;
  background: none;
  border: none;
  color: #2d6bc0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0;
}

.arrow-icon {
  transition: transform 0.35s ease;
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

.advanced-box {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.advanced-box.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 15px;
}

.advanced-box > div {
  overflow: hidden;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 60px;
}

.adv-item label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.adv-item input {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #dddddd;
  font-size: 15px;
  transition: 0.3s;
}

.adv-item input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}

.adv-item.captcha {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding-left: 2px;
}

.adv-item.captcha input[type="checkbox"] {
  flex: unset;
  width: auto;
  transform: scale(1.3);
  cursor: pointer;
  margin: 0;
}

.adv-item.captcha label {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}

@media (max-width: 1024px) {
  .navbar {
    padding: 20px 40px;
  }

  .card {
    width: 90%;
    padding: 30px;
  }

  .advanced-grid {
    gap: 18px 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-text {
    font-size: 18px;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-right a {
    font-size: 13px;
  }

  .btn-outline {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero {
    margin-top: 40px;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .card {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
  }

  .form-box {
    flex-direction: column;
    gap: 12px;
  }

  .form-box button {
    width: 100%;
  }

  .toggle-advanced {
    font-size: 14px;
    margin-top: 18px;
  }

  .advanced-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.user-menu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.user-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.avatar-img {
  object-fit: cover;
  background: transparent;
}

.dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(.22, .61, .36, 1);
  z-index: 999;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown a {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background: #f1f5f9;
  transform: translateX(4px);
  color: #3b82f6;
}
