/* style.css */
:root {
  /* Colors */
  --bg-900: #0b0b0b;
  --bg-800: #111;
  --surface-700: #1c1c1c;
  --muted: #888;
  --text: #f4f4f4;
  --accent: #ffd700; /* gold */
  --accent-2: #ff5500; /* orange */
  --white: #ffffff;
  --danger: #e91e63;

  /* Spacing & type */
  --gap-sm: 8px;
  --gap: 16px;
  --gap-lg: 24px;
  --container: 1200px;

  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --radius: 10px;

  /* useful */
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Arial", sans-serif;
  background: var(--bg-900);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Utility container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Anchor resets */
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.9));
  color: var(--white);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

header h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  gap: 1rem;
  position: relative;
  align-items: center;
}

/* Navbar Links */
.navbar .booking{
  color: var(--accent);
}
.navbar a {
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-lg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: relative;
  transition: transform var(--transition), color var(--transition);
}

.navbar a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar a:hover::after {
  width: 100%;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  cursor: pointer;
}

.tic {
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  margin: 5px auto;
  transition: 0.5s ease-in-out;
}

/* ================= FORM ================= */
.booking-container {
  margin-top: 80px;
  max-width: 900px;
  padding: 0 1.5rem;
}

.booking-container h1 {
  margin-top: 90px;
  font-family: "Playfair Display", serif;
  color: var(--primary);
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.booking-form {
  background-color: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--medium);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: var(--darker);
  border: 2px solid var(--medium);
  border-radius: 4px;
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--darker);
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.booking-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--darker);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.booking-info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}


/* Enhanced Form Styles */
.booking-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.booking-form {
  background: #1a1a1a;
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #0d0d0d;
  border-radius: 10px;
  border-left: 4px solid #ff0000;
}

.form-section h2 {
  color: #ff0000;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffd700;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: #333;
  border: 2px solid #555;
  border-radius: 5px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #333;
}

.submit-btn {
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  min-width: 200px;
}

.submit-btn:hover {
  background: linear-gradient(45deg, #cc0000, #aa0000);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.submit-btn:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
}

/* Error and Success Messages */
.error-display {
  background: #2a0f0f;
  border: 2px solid #ff4444;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 2rem;
  color: #ff8888;
}

.error-display h3 {
  color: #ff4444;
  margin-bottom: 0.5rem;
}

.error-display ul {
  margin-left: 1.5rem;
}

.success-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.success-content {
  background: #1a1a1a;
  border: 2px solid #00ff00;
  border-radius: 15px;
  padding: 2rem;
  max-width: 500px;
  text-align: center;
  color: #fff;
}

.success-content h2 {
  color: #00ff00;
  margin-bottom: 1rem;
}

.booking-summary {
  background: #0d0d0d;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: left;
}

.booking-summary h3 {
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.next-steps {
  background: #0f0f2a;
  border-left: 4px solid #4444ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.contact-info {
  margin: 1rem 0;
}

.contact-info a {
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
}

.close-success {
  background: #ff0000;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  
  .booking-container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  form {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
    padding: 20px 15px;
    box-sizing: border-box; /* ensure padding is included in width */
  }

  input, textarea {
    font-size: 1rem;
  }


  /* From Navigation and Gallery */
  .hamburger {
    display: block;
    margin-right: 10px;
    z-index: 1100;
  }

  .navbar {
    flex-direction: column;
    background-color: var(--bg-900);
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 110%; /* directly below the header */
    left: -100%;
    width: 100%;
    height: 90vh;
    padding: 1rem 0;
    transition: left 0.5s ease;
    z-index: 999;
  }

  .navbar.active {
    left: 0;
  }

  /* Hamburger animation */
  .hamburger.active .tic:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .tic:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .tic:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .booking-container h1 {
    font-size: 1.6rem;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

    .booking-container {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .booking-form {
    padding: 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

}

/* M-Pesa Payment Styles */
.payment-section {
  background: linear-gradient(135deg, #1a4d3a 0%, #0f2922 100%);
  border: 2px solid #00c853;
  border-radius: 15px;
  margin-top: 2rem;
}

.payment-section h2 {
  color: #00e676;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.payment-info {
  max-width: 100%;
}

.payment-description {
  background: rgba(0, 200, 83, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #00c853;
  font-size: 0.95rem;
}

.mpesa-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mpesa-info-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #00c853;
}

.mpesa-info-card h3 {
  color: #00e676;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 200, 83, 0.2);
}

.payment-detail:last-child {
  border-bottom: none;
}

.payment-detail .label {
  font-weight: 600;
  color: #00e676;
}

.payment-detail .value {
  font-weight: bold;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
}

.deposit-amount {
  color: #ffd700 !important;
  font-size: 1.3rem !important;
}

.deposit-note {
  font-size: 0.8rem;
  color: #00c853;
  font-style: italic;
}

.copy-btn {
  background: #00c853;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #00e676;
}

.payment-instructions {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #00c853;
}

.payment-instructions h4 {
  color: #00e676;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.payment-instructions ol {
  color: #e0e0e0;
  line-height: 1.6;
}

.payment-instructions li {
  margin-bottom: 0.5rem;
}

.payment-instructions strong {
  color: #00e676;
}

.payment-form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.payment-note {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.payment-note p {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.payment-note ul {
  color: #e0e0e0;
  line-height: 1.5;
}

.payment-note li {
  margin-bottom: 0.3rem;
}

.payment-status {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
}

.payment-status.success {
  background: rgba(0, 200, 83, 0.2);
  border: 1px solid #00c853;
  color: #00e676;
}

.payment-status.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  color: #ff5252;
}

.payment-status.processing {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid #ffc107;
  color: #ffeb3b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mpesa-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .payment-form-group {
    grid-template-columns: 1fr;
  }
  
  .payment-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .mpesa-info-card {
    padding: 1rem;
  }
}
