/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Body */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Container */
.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
  animation: slideUp 0.8s ease-out;
  transition: transform 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(28px, 5vw, 36px);
  color: #2c3e50;
  font-weight: 700;
  position: relative;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  animation: underlineGrow 1s ease-out 0.5s both;
}

@keyframes underlineGrow {
  from { width: 0; }
  to { width: 80px; }
}

/* Form Sections */
.form-section {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: sectionSlide 0.6s ease-out;
  animation-fill-mode: both;
  transition: all 0.3s ease;
}

.form-section:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@keyframes sectionSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Section Headers */
.section-header {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Labels */
label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

label:hover {
  color: #667eea;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 15px 18px;
  margin-top: 8px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: #fff;
  transform: translateY(-2px);
}

input:hover:not(:focus),
select:hover:not(:focus) {
  border-color: #c5d2ea;
  background: #fff;
}

/* Checkbox Groups */
.checkbox-group {
  display: grid;
  gap: 15px;
  margin-top: 15px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.checkbox-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  background: #fff;
  padding: 18px 20px;
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-group label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.checkbox-group label:hover {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.checkbox-group label:hover::before {
  left: 100%;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
}

/* Quantity Controls */
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 126, 234, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.qty-control button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.qty-control button:active {
  transform: scale(0.95);
}

.qty-control input[type="number"] {
  width: 60px;
  text-align: center;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 8px;
  font-weight: 600;
  margin: 0;
}

/* Submit Button */
button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: none;
  padding: 18px;
  border-radius: 15px;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button[type="submit"]::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: left 0.6s ease;
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]:active {
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Status Messages */
.status {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  animation: statusSlide 0.5s ease-out;
}

@keyframes statusSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.status.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border: 2px solid #b8dcc2;
}

.status.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border: 2px solid #f1b0b7;
}

/* Coupon Badge */
#couponBadge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: bold;
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  animation: couponPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

@keyframes couponPop {
  0% { transform: scale(0) rotate(180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .form-container {
    padding: 25px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .form-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .checkbox-group {
    padding: 15px;
  }
  
  .checkbox-group label {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 15px;
  }
  
  .qty-control {
    justify-content: center;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  input[type="file"],
  select {
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 20px;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    font-size: 18px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form animation delays */
.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }

/* File input styling */
input[type="file"] {
  padding: 15px;
  border: 2px dashed #e1e8ed;
  background: rgba(248, 250, 252, 0.8);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* Custom select styling */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
}

/* Logo Section Styles */

/* Simple Logo Styling - Top Left */
.logo-container {
  position: fixed;
  top: 20px;
  right: 20px; /* Right side positioning */
  z-index: 1000;
  width: 160px;
  max-width: 30vw;
  background: none !important;
  padding: 0;
  border: none;
  box-shadow: none !important;
}

.company-logo {
  background: transparent !important;
  border: none;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 160px;
}

/* Tablet responsive */
@media (max-width: 768px) {
  .logo-container {
    width: 120px;
  }
  .company-logo {
    max-width: 120px;
  }
}

/* Mobile responsive - moves logo below header */
@media (max-width: 600px) {
  .logo-container {
    position: static !important;
    display: block !important;
    margin: 10px auto 20px auto !important;
    width: 50% !important;
    max-width: 150px !important;
  }
  
  h1 {
    margin-bottom: 10px;
  }
}


