/* KGB Booking System Styles */

:root {
  --primary: #ff6b00;
  --primary-dark: #e55d00;
  --primary-light: #ff8c33;
  --secondary: #333;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
  min-height: 100vh;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.lang-switcher a {
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--gray);
  background: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--primary);
  color: white;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.header .logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.header .title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #ddd;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  max-width: 80px;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* Form Sections */
.booking-form {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-section {
  display: none;
  padding: 30px;
  animation: fadeIn 0.3s ease;
}

.form-section.active {
  display: block;
}

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

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--secondary);
  text-align: center;
}

/* Party Type Cards */
.party-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.party-type-card {
  cursor: pointer;
}

.party-type-card input {
  display: none;
}

.party-type-card .card-content {
  background: var(--light);
  border: 3px solid transparent;
  border-radius: var(--border-radius);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.party-type-card .card-content:hover {
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.party-type-card input:checked + .card-content {
  border-color: var(--primary);
  background: #fff5eb;
}

.party-type-card .card-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.party-type-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--secondary);
}

.party-type-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--gray);
  font-size: 0.85rem;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-row .form-group.small {
  flex: 0 0 100px;
}

/* Time Slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot {
  cursor: pointer;
}

.time-slot input {
  display: none;
}

.time-slot .slot-content {
  padding: 15px 25px;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.time-slot .slot-content:hover {
  border-color: var(--primary-light);
}

.time-slot input:checked + .slot-content {
  border-color: var(--primary);
  background: #fff5eb;
}

.time-slot.disabled .slot-content {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 25px;
}

.package-card {
  cursor: pointer;
}

.package-card input {
  display: none;
}

.package-card .package-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.package-card .package-content:hover {
  border-color: var(--primary-light);
}

.package-card input:checked + .package-content {
  border-color: var(--primary);
  background: #fff5eb;
}

.package-card.popular .package-content {
  position: relative;
}

.package-card.popular .package-content::before {
  content: '⭐ BELIBST';
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.package-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.package-info p {
  color: var(--gray);
  font-size: 0.85rem;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.package-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
}

/* Number Input */
.number-input {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
}

.number-input input {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.number-input input::-webkit-outer-spin-button,
.number-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.num-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.num-btn:hover {
  background: var(--primary-dark);
}

/* Extras */
.extras-section {
  margin: 25px 0;
  padding: 20px;
  background: var(--light);
  border-radius: var(--border-radius);
}

.extras-section h3 {
  margin-bottom: 15px;
}

.extras-grid {
  display: grid;
  gap: 10px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.extra-item:hover {
  box-shadow: var(--shadow);
}

.extra-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.extra-info {
  flex: 1;
}

.extra-info strong {
  display: block;
}

.extra-info small {
  color: var(--gray);
}

.extra-price {
  font-weight: 600;
  color: var(--primary);
}

/* Price Calculator */
.price-calculator {
  background: linear-gradient(135deg, var(--secondary), #444);
  color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  margin-top: 25px;
}

.price-calculator h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid var(--primary);
}

.price-row.deposit {
  color: var(--primary-light);
}

.price-row.remaining {
  color: #aaa;
}

/* Form Cards */
.form-card {
  background: var(--light);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.form-card h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Summary Card */
.summary-card {
  background: var(--light);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 25px;
}

.summary-card h3 {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  color: var(--gray);
}

.summary-row .value {
  font-weight: 500;
}

/* Terms */
.terms-section {
  margin: 25px 0;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--gray);
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  border-color: var(--gray);
  color: var(--secondary);
}

.btn-pay {
  flex: 1;
  font-size: 1.1rem;
  padding: 16px;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #eee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.terms-content p {
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header .title {
    font-size: 1.5rem;
  }
  
  .party-type-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group.small {
    flex: 1;
  }
  
  .progress-steps {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .step-label {
    font-size: 0.65rem;
    max-width: 60px;
  }
  
  .form-section {
    padding: 20px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
