/* Global Styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: #111;
}

/* Main Content */
main {
  background-color: #fff;
  padding: 50px 0;
}

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

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bg-white {
  background-color: #fff;
  padding: 9px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: -4vh;
}

h2 {
  font-size: 24px;
  color: #111;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  color: #444;
}

label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #ff9900;
  box-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="radio"] {
  margin-right: 10px;
}

button {
  background-color: #ff9900;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background-color: #ff6600;
}

/* Order Summary */
#order-items {
  margin-bottom: 30px;
}

#order-items .item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#order-items .item .item-name {
  font-size: 16px;
}

#order-items .item .item-price {
  font-weight: 700;
  font-size: 16px;
}

#order-total {
  font-size: 20px;
  font-weight: 700;
  color: #ff6600;
}

/* Payment Section */
#upi-section {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}

#upi-section img {
  max-width: 150px;
  margin-bottom: 15px;
}

#upi-id-display {
  font-weight: bold;
  color: #333;
}

/* Footer */
footer {
  background-color: #232f3e;
  color: white;
  padding: 40px 0;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .footer-links a {
  color: white;
  font-size: 16px;
  text-decoration: none;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  footer .footer-links {
    flex-direction: column;
  }
}
/* Enhanced Form Inputs with Modern Touch */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  transition: all 0.3s ease;
  background-color: #fafafa;
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
textarea:hover {
  background-color: #ffffff;
  border-color: #999;
}

/* Custom Radio Button Styling */
input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff9900;
}

input[type="radio"]:checked {
  transform: scale(1.1);
}

/* Payment Method Section Enhancement */
.payment-option {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-option:hover {
  border-color: #ff9900;
  background-color: #fff8f0;
}

/* Button Animations */
button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:active {
  transform: scale(0.98);
}

/* Order Summary Enhancements */
.border-t {
  border-top: 2px solid #e0e0e0 !important;
  margin-top: 20px;
}

#order-subtotal,
#order-total {
  color: #111;
  font-weight: 700;
}

/* Loading State for Form */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
}

.form-loading button {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Success Message Styling */
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

/* Enhanced Item Row Hover Effect */
.item-row {
  transition: all 0.3s ease;
}

.item-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #ff9900;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Form Label Enhancement */
label {
  display: block;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Required Field Indicator */
label::after {
  content: " *";
  color: #ff0000;
  font-weight: bold;
}

/* Header Enhancement */
header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Footer Link Enhancement */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ff9900;
}

/* Price Highlight Animation */
@keyframes priceGlow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
  }
}

#order-total {
  animation: priceGlow 2s ease-in-out infinite;
}

/* Mobile Navigation Enhancement */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .container {
    width: 95%;
  }
}

/* Card Shadow on Scroll */
.bg-white {
  transition: box-shadow 0.3s ease;
}

.bg-white:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Input Validation Styles */
input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

/* Placeholder Styling */
::placeholder {
  color: #999;
  opacity: 1;
  font-style: italic;
}

/* Focus Visible Enhancement */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #ff9900;
  outline-offset: 2px;
}

/* Shipping Free Badge */
.border-gray-200 span:nth-child(2) {
  color: #28a745;
  font-weight: 600;
}

/* Grid Gap Enhancement for Better Spacing */
@media (min-width: 1024px) {
  .grid {
    gap: 50px;
  }
}
/* Advanced Card Styling */
.bg-white {
  position: relative;
  overflow: hidden;
}

.bg-white::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 153, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.bg-white:hover::before {
  left: 100%;
}

/* Gradient Text Effects */
h2 {
  background: linear-gradient(135deg, #111 0%, #444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Form Section Dividers */
form > div {
  position: relative;
  padding-bottom: 10px;
}

form > div::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff9900, #ff6600);
  transition: width 0.4s ease;
}

form > div:focus-within::after {
  width: 100%;
}

/* Floating Label Effect */
.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: #ff9900;
}

/* Order Items Animation */
#order-items > * {
  animation: slideInFromLeft 0.5s ease forwards;
  opacity: 0;
}

#order-items > *:nth-child(1) {
  animation-delay: 0.1s;
}
#order-items > *:nth-child(2) {
  animation-delay: 0.2s;
}
#order-items > *:nth-child(3) {
  animation-delay: 0.3s;
}
#order-items > *:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Enhanced Item Details */
.item-details h4 {
  position: relative;
  display: inline-block;
}

.item-details h4::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff9900;
  transition: width 0.3s ease;
}

.item-row:hover .item-details h4::after {
  width: 100%;
}

/* Price Tag Styling */
.item-price {
  position: relative;
  padding: 5px 10px;
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border-radius: 5px;
  border: 1px solid #ffe5cc;
}

.item-price::before {
  content: "₹";
  font-weight: normal;
  margin-right: 2px;
  color: #ff6600;
}

/* Input Icons */
input[type="text"],
input[type="tel"],
input[type="email"] {
  padding-left: 40px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 20px;
}

/* Quantity Badge Style */
.item-details p {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 13px;
  margin-top: 5px;
}

/* Total Section Enhancement */
.flex.justify-between {
  padding: 10px 0;
  transition: all 0.3s ease;
}

.flex.justify-between:hover {
  padding-left: 10px;
  background-color: #fafafa;
  border-radius: 5px;
}

/* Shipping Badge */
.flex.justify-between span:last-child {
  font-weight: 600;
}

.flex.justify-between:nth-child(2) span:last-child {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

/* Button Loading State */
button.loading {
  position: relative;
  color: transparent;
}

button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Checkbox/Radio Custom Styling */
input[type="radio"]:checked::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff9900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Payment Method Card */
#upi-label {
  font-weight: 600;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

input[type="radio"]:checked + label {
  color: #ff9900;
  background-color: #fff8f0;
}

/* Tooltip Effect */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff9900 0%, #ff6600 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff6600 0%, #ff4400 100%);
}

/* Text Selection Styling */
::selection {
  background-color: #ff9900;
  color: white;
}

::-moz-selection {
  background-color: #ff9900;
  color: white;
}

/* Header Logo Animation */
h1 {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff9900, #ff6600);
  transition: width 0.4s ease;
}

h1:hover::after {
  width: 100%;
}

/* Navigation Link Effects */
nav ul li a {
  position: relative;
  padding: 5px 0;
}

nav ul li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ff9900;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::before {
  width: 100%;
}

/* Icon Animations */
nav ul li a i {
  transition: transform 0.3s ease;
  display: inline-block;
}

nav ul li a:hover i {
  transform: scale(1.2);
}

/* Footer Grid Enhancement */
footer .grid > div {
  padding: 20px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

footer .grid > div:hover {
  border-left-color: #ff9900;
  padding-left: 25px;
}

/* Footer Heading Underline */
footer h3 {
  position: relative;
  padding-bottom: 10px;
}

footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #ff9900;
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-cart i {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
  display: block;
}

/* Form Progress Indicator */
.form-progress {
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.form-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9900, #ff6600);
  width: 0;
  transition: width 0.3s ease;
}

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #f0f8ff;
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  margin-top: 20px;
}

.security-badge i {
  color: #0066cc;
  font-size: 24px;
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

button[type="submit"]:hover {
  animation: pulse 1s infinite;
}

/* Glass Morphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Mobile Optimization */
@media (max-width: 480px) {
  h2 {
    font-size: 20px;
  }

  .item-row {
    padding: 10px;
  }

  button {
    padding: 15px;
    font-size: 15px;
  }

  input,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Dark Mode Preparation (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}

/* Print Styles */
@media print {
  header,
  footer,
  nav,
  button {
    display: none;
  }

  .bg-white {
    box-shadow: none;
    border: 1px solid #000;
  }
}
