/* ===================================
   HEADER STYLES
   =================================== */
.site-header,
header {
  background: var(--surface, #fff);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  margin: 0;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 130px; /* Adjust based on header height */
}

/* Remove top padding/margin from hero section to eliminate dead space */
.hero {
  margin-top: -130px !important;
  padding-top: 180px !important;
}

@media (max-width: 768px) {
  body {
    padding-top: 110px; /* Smaller padding on mobile */
  }
  
  .hero {
    margin-top: -110px !important;
    padding-top: 150px !important;
  }
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px var(--container-pad, 20px);
  max-width: var(--max-w, 1400px);
  margin: 0 auto;
  gap: 20px;
  background: #fff;
}

/* ================================
   LOGO
   ================================ */
.logo img {
  max-height: 65px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ================================
   SEARCH BAR
   ================================ */
.search-bar {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 56px 14px 22px;
  border: 2px solid #e7e7e7;
  border-radius: 28px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: var(--navy-blue, #161F4B);
  box-shadow: 0 6px 20px rgba(22, 31, 75, 0.1);
}

.search-btn,
.search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-red, #c41e3a);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover,
.search-bar button:hover {
  background: #a01829;
}

/* ================================
   HEADER ACTIONS
   ================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-actions a,
.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #373736;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.header-actions a:hover,
.action-link:hover {
  color: var(--primary-red, #c41e3a);
}

.header-actions i,
.action-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* ================================
   ACCOUNT DROPDOWN
   ================================ */
.account-dropdown-wrapper {
  position: relative;
}

.account-dropdown-wrapper:hover .account {
  color: var(--primary-red, #c41e3a);
}

.account-chevron {
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.account-dropdown-wrapper:hover .account-chevron {
  transform: rotate(180deg);
}

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: max-content;
  padding: 8px 0;
  z-index: 1000;
  border: 1px solid #e8e8e8;
  overflow: visible;
  animation: dropdownFadeIn 0.2s ease-out;
}

.account-dropdown::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.account-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

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

.account-dropdown-wrapper:hover .account-dropdown,
.account-dropdown:hover {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  margin-bottom: 0;
}

.dropdown-item:first-child {
  padding-top: 10px;
}

.dropdown-item:last-child {
  border-bottom: none;
  padding-bottom: 10px;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-red, #c41e3a);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, #fff5f5 0%, #ffffff 100%);
  padding-left: 18px;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item:hover .dropdown-title {
  color: var(--primary-red, #c41e3a);
  transform: translateX(2px);
}

.dropdown-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-red, #c41e3a);
  margin-bottom: 3px;
  letter-spacing: 0.1px;
  transition: all 0.25s ease;
  line-height: 1.3;
}

.dropdown-subtitle {
  display: block;
  font-size: 9px;
  color: #666;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.25s ease;
  margin-top: 0;
}

.dropdown-item:hover .dropdown-subtitle {
  color: #555;
}

/* ================================
   CART ICON WITH ITEM COUNT
   ================================ */
.cart-dropdown-wrapper {
  position: relative;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-link i {
  font-size: 18px;
  display: block;
}

.minicart_count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-red, #c41e3a);
  color: #fff;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s ease;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
  z-index: 10;
}

.cart-text {
  display: inline-block;
}

.cart-dropdown-wrapper:hover .minicart_count {
  transform: scale(1.2);
}

/* ================================
   CART DROPDOWN
   ================================ */
.cart-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 380px;
  max-width: 420px;
  max-height: 85vh;
  z-index: 1000;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
  flex-direction: column;
}

.cart-dropdown::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 0;
  left: 0;
  height: 4px;
  background: transparent;
}

.cart-dropdown-wrapper:hover .cart-dropdown,
.cart-dropdown:hover {
  display: flex;
}

.cart-header {
  background: #f5f5f5;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.cart-header i {
  color: #666;
  font-size: 16px;
}

.cart-items-count {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.cart-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.cart-empty {
  text-align: center;
  padding: 30px 20px;
  color: #1e293b;
  font-size: 14px;
}

.cart-empty strong {
  font-weight: 700;
  font-size: 15px;
}

.cart-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d4a574;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.coupon-input:focus {
  border-color: #c41e3a;
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.1);
}

.coupon-btn {
  padding: 10px 16px;
  background: #c41e3a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.coupon-btn:hover {
  background: #a01829;
}

.coupon-btn i {
  font-size: 11px;
}

.cart-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.order-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #c41e3a;
  cursor: pointer;
}

.order-option label {
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  font-weight: 500;
}

.location-select {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid #1e293b;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.location-select:focus {
  border-color: #c41e3a;
}

.cart-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.btn-checkout {
  flex: 1;
  padding: 12px;
  background: #c41e3a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-checkout:hover {
  background: #a01829;
}

.btn-view-cart {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: #1e293b;
  border: 2px solid #1e293b;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-view-cart:hover {
  background: #1e293b;
  color: #fff;
}

/* Cart Items List */
.cart-items-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 15px;
  min-height: 0;
  max-height: 280px;
  padding-right: 5px;
}

.cart-items-list::-webkit-scrollbar {
  width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background: #c41e3a;
  border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
  background: #a01829;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-part {
  font-size: 10px;
  color: #999;
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #f5f5f5;
  border-color: #c41e3a;
  color: #c41e3a;
}

.qty-input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  outline: none;
}

.qty-input:focus {
  border-color: #c41e3a;
  box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.1);
}

.cart-item-subtotal {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.cart-item-remove {
  position: absolute;
  top: 12px;
  right: 0;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: transform 0.2s;
}

.cart-item-remove:hover {
  transform: scale(1.2);
  color: #c82333;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 15px;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.cart-total-amount {
  font-size: 20px;
  font-weight: 700;
  color: #c41e3a;
}

/* ================================
   NAVIGATION STYLES
   ================================ */
.main-nav {
  background: #161F4B;
  padding: 0;
  margin: 0;
  border-top: none;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 25px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav ul li a i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.main-nav ul li:hover > a i {
  transform: rotate(180deg);
}

.main-nav ul li a:hover {
  background: #0f1533;
}

/* ================================
   DROPDOWN MENU
   ================================ */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 10px 0;
  border: 1px solid #e0e0e0;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  flex-direction: column;
}

.main-nav ul li:hover ul {
  display: flex;
}

.main-nav ul li ul li {
  width: 100%;
}

.main-nav ul li ul li a {
  color: #373736;
  padding: 10px 20px;
  font-size: 13px;
}

.main-nav ul li ul li a:hover {
  background: #f5f5f5;
  color: #c41e3a;
}

/* ===================================
   MOBILE OFF-CANVAS MENU
   =================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.mobile-menu-toggle:hover {
  background: rgba(22, 31, 75, 0.08);
}
.mobile-menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #161F4B;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 1002;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.mobile-menu-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}
.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #373736;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-close:hover {
  background: #f0f0f0;
  color: #161F4B;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0 24px;
  flex: 1;
  min-height: 0;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: none;
}
.mobile-menu-nav a:hover {
  background: #f5f5f5;
  color: var(--primary-red, #c41e3a);
}
.mobile-menu-nav a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.mobile-menu-contact {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-menu-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #373736;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.mobile-menu-contact a:hover {
  color: var(--primary-red, #c41e3a);
}
.mobile-menu-contact i {
  width: 18px;
  text-align: center;
}
.mobile-menu-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #161F4B;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-menu-social a:hover {
  background: var(--primary-red, #c41e3a);
  transform: scale(1.05);
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
}
body.mobile-menu-open {
  overflow: hidden;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

/* Tablet and below */
@media (max-width: 1024px) {
  .header-top {
    padding: 12px 15px;
    gap: 12px;
  }

  .logo img {
    max-height: 60px;
  }

  .search-bar {
    max-width: 100%;
  }

  .header-actions {
    gap: 15px;
  }

  .header-actions a,
  .action-link {
    font-size: 12px;
  }

  .main-nav ul li a {
    padding: 12px 18px;
    font-size: 12px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    max-height: 50px;
  }

  .search-bar {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 8px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .nav-container {
    justify-content: flex-start;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header-top {
    padding: 8px 10px;
  }

  .logo img {
    max-height: 45px;
  }

  .search-bar {
    margin-top: 6px;
  }

  .search-bar input {
    padding: 10px 50px 10px 15px;
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions a,
  .action-link {
    font-size: 10px;
  }

  .header-actions i,
  .action-link i {
    font-size: 14px;
  }

  .main-nav ul li a {
    padding: 10px 12px;
    font-size: 10px;
  }

  .account-dropdown {
    min-width: 240px;
    right: -10px;
  }

  .dropdown-item {
    padding: 12px 16px;
  }

  .dropdown-title {
    font-size: 14px;
  }

  .dropdown-subtitle {
    font-size: 11px;
  }

  .cart-dropdown {
    min-width: 320px;
    max-width: 90vw;
    right: -10px;
  }

  .cart-coupon {
    flex-direction: column;
  }

  .coupon-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Landscape Orientation Support */
@media (max-width: 1024px) and (orientation: landscape) {
  .header-top {
    padding: 8px 15px;
  }

  .main-nav ul {
    gap: 8px;
  }

  .main-nav ul li a {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .header-top {
    padding: 6px 12px;
  }

  .logo img {
    max-height: 40px;
  }

  .search-bar {
    order: 2;
    flex: 1 1 auto;
    margin-top: 0;
    max-width: 300px;
  }

  .header-actions {
    order: 3;
  }
}

/* Very Small Screens */
@media (max-width: 360px) {
  .header-top {
    padding: 6px 8px;
  }

  .logo img {
    max-height: 40px;
  }

  .header-actions a,
  .action-link {
    padding: 6px;
  }

  .main-nav ul li a {
    padding: 8px 10px;
    font-size: 9px;
  }
}

/* ================================
   SIGN IN MODAL
   ================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #666;
}

.modal-content {
  padding: 40px 32px 32px;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.2;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--primary-red, #c41e3a);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.form-input:focus {
  border-color: var(--primary-red, #c41e3a);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--primary-red, #c41e3a);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--primary-red, #c41e3a);
}

.form-checkbox label {
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  font-weight: 400;
}

.recaptcha-notice {
  font-size: 12px;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

.recaptcha-notice .link {
  color: var(--primary-red, #c41e3a);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.recaptcha-notice .link:hover {
  text-decoration: underline;
}

.btn-next {
  width: 100%;
  padding: 14px;
  background: var(--primary-red, #c41e3a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-next:hover {
  background: #a01829;
}

.btn-next:active {
  transform: scale(0.98);
}

.modal-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.modal-link {
  color: var(--primary-red, #c41e3a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: text-decoration 0.2s ease;
}

.modal-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 95%;
    max-width: none;
  }

  .modal-content {
    padding: 32px 24px 24px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .modal-links {
    flex-direction: column;
    gap: 12px;
  }

  .modal-link {
    text-align: center;
  }
}