/* Import Unified Color Palette */
@import url('colors.css');
/* Import Unified Header Styles */
@import url('header.css');
/* Import Unified Button Styles */
@import url('buttons.css');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bgGradient);
  color: var(--textDark);
  padding: 100px 20px 60px;
  min-height: 100vh;
  line-height: 1.6;
}

/* Header is already fixed in header.css */
header.header {
  position: fixed;
  top: 0;
  left: 0;
}

/* Checkout Form */
.container {
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--cardBg);
  border-radius: 24px;
  padding: 60px 50px;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.2);
}

h1 {
  font-size: 32px;
  margin: 40px 0 30px;
  font-weight: 800;
  color: var(--greenDarker);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 15px;
}

h1:first-of-type {
  margin-top: 0;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--greenNormal), var(--greenDark));
  border-radius: 2px;
}

.field {
  position: relative;
  margin-top: 32px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 18px 20px 16px 20px;
  border: 2px solid var(--greenLightActive);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: var(--greenLight);
  outline: none;
  transition: all 0.3s ease;
  color: var(--textDark);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--greenNormal);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1), 0 4px 12px rgba(34, 197, 94, 0.15);
  background: white;
  transform: translateY(-2px);
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--greenNormal);
  background: white;
}

.field label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: var(--cardBg);
  padding: 0 10px;
  color: var(--textLight);
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
}

.field textarea + label {
  top: 20px;
  transform: none;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: -12px;
  left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--greenDark);
  background: var(--cardBg);
  padding: 2px 8px;
}

.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -12px;
  transform: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.btn {
  margin-top: 40px;
  width: 100%;
  padding: 18px 30px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--greenNormal), var(--greenDark));
  color: white;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.45);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1);
}

/* Notification */
.notification {
  display: none;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 18px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notification.success {
  background: linear-gradient(135deg, var(--greenLight), var(--greenNormal));
  color: var(--greenDarker);
  border: 2px solid var(--greenDark);
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -30px) scale(0.9);
  }
}

/* Search Form Fix */
header.header .middle .search-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  align-items: center;
  height: 44px;
}

header.header .middle .search-form input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  box-sizing: border-box;
}

header.header .middle .search-form .btn,
header.header .middle .search-form .gradient-btn {
  flex-shrink: 0;
  height: 44px;
  min-width: 100px;
  padding: 12px 20px;
  line-height: 1;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 100px 15px 40px;
  }

  .card {
    padding: 40px 30px;
    border-radius: 20px;
  }

  h1 {
    font-size: 26px;
    margin: 30px 0 25px;
  }

  .field {
    margin-top: 28px;
  }

  .field input,
  .field textarea,
  .field select {
    padding: 16px 18px 14px 18px;
    font-size: 15px;
  }

  .btn {
    padding: 16px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }
}
