/* ==========================================================================
   1. Variables & Base Styles
   ========================================================================== */
:root {
  --primary-color: #ff9800;
  --secondary-color: #ff7600;
  --dark-bg: #111;
  --darker-bg: #000;
  --light-text: #fff;
  --gray-text: #ccc;
  --success-color: rgba(0, 255, 0, 0.3);
  --error-color: rgba(255, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hover-scale: scale(1.02);
  --active-scale: scale(0.98);
}

/* ==========================================================================
   2. Reservation Section
   ========================================================================== */
.reservation-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.reservation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* ==========================================================================
   3. Reservation Container
   ========================================================================== */
.reservation-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
  background: rgba(34, 34, 34, 0.95);
  border-radius: 25px;
  box-shadow: 
    0 8px 32px rgba(255, 152, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 152, 0, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
}

.reservation-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.3;
}

/* ==========================================================================
   4. Reservation Header
   ========================================================================== */
.reservation-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.reservation-header h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.reservation-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.reservation-header p {
  color: var(--gray-text);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   5. Reservation Form
   ========================================================================== */
.reservation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.form-group {
  position: relative;
  transition: transform 0.3s ease;
}

.form-group:hover {
  transform: translateX(5px);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Labels and Icons */
.reservation-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.form-group:hover label {
  color: var(--secondary-color);
}

.reservation-form label svg {
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.form-group:hover label svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Form Inputs */
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 152, 0, 0.2);
  border-radius: 12px;
  color: var(--light-text);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  margin-top: 5px;
}

.reservation-form textarea {
  height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* Input States */
.reservation-form input:hover,
.reservation-form select:hover,
.reservation-form textarea:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 152, 0, 0.4);
  transform: var(--hover-scale);
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
  transform: var(--hover-scale);
}

.reservation-form input:active,
.reservation-form select:active,
.reservation-form textarea:active {
  transform: var(--active-scale);
}

/* Submit Button */
.reservation-form button {
  grid-column: 1 / -1;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--dark-bg);
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.reservation-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.7s ease;
}

.reservation-form button:hover {
  transform: translateY(-3px) var(--hover-scale);
  box-shadow: 
    0 10px 25px rgba(255, 152, 0, 0.4),
    0 6px 12px rgba(0, 0, 0, 0.2);
}

.reservation-form button:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.reservation-form button:hover svg {
  transform: rotate(360deg) scale(1.2);
}

.reservation-form button:active {
  transform: translateY(-1px) var(--active-scale);
}

.reservation-form button svg {
  transition: var(--transition-smooth);
}

.reservation-form button span {
  position: relative;
  z-index: 1;
}

/* Form Validation Styles */
.reservation-form input:not(:placeholder-shown):invalid,
.reservation-form select:invalid,
.reservation-form textarea:not(:placeholder-shown):invalid {
  border-color: var(--error-color);
  background: rgba(255, 0, 0, 0.05);
  animation: shake 0.3s ease-in-out;
}

.reservation-form input:not(:placeholder-shown):valid,
.reservation-form select:valid,
.reservation-form textarea:not(:placeholder-shown):valid {
  border-color: var(--success-color);
  background: rgba(0, 255, 0, 0.05);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ==========================================================================
   6. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .reservation-form {
    grid-template-columns: 1fr;
  }
  
  .reservation-container {
    margin: 20px;
    padding: 20px;
  }
  
  .reservation-header h1 {
    font-size: 2rem;
  }
}
