body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f5f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  background: white;
  padding: 10px 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}
.logo { height: 50px; width: auto; }

.title-banner {
  position: relative;
  width: 100%;
  height: 250px;
  background-image: url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 4px solid #ffd700;
}

.banner-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 11, 69, 0.7);
  z-index: 1;
}

.banner-content { position: relative; z-index: 2; padding: 0 20px; }
.banner-content h1 { margin: 0; color: #ffd700; font-size: 36px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.banner-content p { margin: 10px 0 0 0; color: #ffffff; font-size: 20px; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.container { max-width: 900px; margin: 30px auto; padding: 0 15px; flex: 1; }
.form-card {
  background: #ffffff; border-radius: 12px; padding: 25px 30px;
  margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #2d0b45;
}
.card-title {
  color: #2d0b45; font-size: 22px; margin-top: 0;
  border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px;
}

.req { color: #cc0000; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 8px; color: #2d0b45; }
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px;
  box-sizing: border-box; font-family: inherit; font-size: 15px; background: #fff; transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: #2d0b45; box-shadow: 0 0 5px rgba(45, 11, 69, 0.2); }

.input-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Star Rating Styles */
.star-rating {
  display: flex;
  gap: 10px;
  font-size: 40px;
  color: #e0e0e0;
  cursor: pointer;
  user-select: none;
}
.star-rating span { transition: color 0.2s ease; }
.star-rating span:hover, .star-rating span.active { color: #ffd700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }

.declaration-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.declaration-group input { margin-top: 4px; transform: scale(1.2); cursor: pointer; }
.declaration-group label { font-weight: bold; color: #333; font-size: 15px; cursor: pointer; }

#submitBtn {
  width: 100%; padding: 15px; background-color: #c4c4c4; color: white;
  border: none; border-radius: 6px; font-size: 18px; font-weight: bold;
  cursor: not-allowed; transition: 0.3s;
}
#submitBtn.active { background-color: #2d0b45; cursor: pointer; }
#submitBtn.active:hover { background-color: #421466; }

.error-highlight { border: 2px solid #cc0000 !important; box-shadow: 0 0 5px rgba(204, 0, 0, 0.3) !important; }
#formError { color: #cc0000; font-weight: bold; text-align: center; display: none; margin-bottom: 15px; }

@media(max-width: 768px) {
  .top-bar { justify-content: flex-start; padding: 10px 15px; } 
  .title-banner { height: 160px; background-size: 100% 100%; }
  .title-banner h1 { font-size: 24px; }
  .title-banner p { font-size: 16px; }
  .form-card { padding: 20px 15px; }
  .input-grid-2 { grid-template-columns: 1fr; }
}

body::after {
  content: "For any issue contact: +91 8617827552 | Email: tsastrologgy@gmail.com | Website: https://ts-astrologgy.netlify.app/ \A \A © 2026 TS Astrologgy. All Rights Reserved.";
  white-space: pre-wrap; display: block; background-color: #2d0b45; color: #ffffff;
  text-align: center; padding: 25px 20px; font-size: 14px; line-height: 1.8;
  border-top: 4px solid #ffd700; width: 100%; box-sizing: border-box; margin-top: auto;
}