/* Core styling for Sai Darshan Cab website */

/* Reset some default margins/padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdfdfd;
    color: #222;
    line-height: 1.6;
}

header {
    background-color: #000;
    color: #ffd700;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 5px;
    font-size: 32px;
}

header p {
    font-size: 14px;
    color: #ffd700;
}

nav {
    background-color: #ffd700;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* Slider styles */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border: 5px solid #ffd700;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #ffd700;
    margin-bottom: 10px;
}

.tabs button {
    flex: 1;
    padding: 10px;
    background-color: #ffd700;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tabs button.active {
    background-color: #000;
    color: #ffd700;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
}

.tab-content.active {
    display: block;
}

form input, form select, form textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #000;
    color: #ffd700;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #333;
}

footer {
    background-color: #000;
    color: #ffd700;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

/* Admin panel styles */
.admin-container {
    max-width: 800px;
    margin: 40px auto;
}

.admin-container h2 {
    margin-bottom: 20px;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.table th {
    background-color: #ffd700;
    color: #000;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.action-links a {
    margin-right: 10px;
    color: #0066cc;
    text-decoration: none;
}

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

/* ===== HERO (Slider background + overlay form) ===== */
.hero{
  position:relative;
  width:100%;
  height:560px;
  border:2px solid #ffd700;
  overflow:hidden;
  border-radius: 10px;
  background:#000;
}
.hero .slider{
  position:absolute;
  inset:0;
  height:100%;
  width:100%;
  margin:0;
}
.hero .slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 1s ease-in-out;
}
.hero .slide.active{opacity:1;}
.hero .slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: brightness(.55);
  transform: scale(1.03);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25), rgba(0,0,0,.75));
  pointer-events:none;
}
.hero-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 16px;
}
.hero-card{
  width:min(980px, 100%);
  background: rgba(0,0,0,.72);
  border:1px solid rgba(255,215,0,.55);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.hero-head h2{
  color:#ffd700;
  font-size: 22px;
}
.hero-head p{
  color:#fff;
  opacity:.9;
  font-size: 13px;
}
.hero-form-wrap{
  margin-top: 10px;
}
.hero .tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  background: transparent;
  border:0;
  padding:0;
  margin: 0 0 12px 0;
}
.hero .tabs button{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,.45);
  background: rgba(255,215,0,.14);
  color:#ffd700;
  font-weight:700;
  cursor:pointer;
}
.hero .tabs button.active{
  background:#ffd700;
  color:#000;
  border-color:#ffd700;
}
.hero .tab-content{
  display:none;
  background: transparent;
  border:0;
  padding:0;
}
.hero .tab-content.active{display:block;}
.hero label{color:#ffd700;}
.hero input, .hero textarea{
  background: rgba(255,255,255,.95);
}
.hero button[type="submit"]{
  background:#ffd700;
  color:#000;
  font-weight:800;
  border:0;
  border-radius:10px;
}
.hero button[type="submit"]:hover{opacity:.92;}

@media (max-width: 768px){
  .hero{height:auto;}
  .hero .slider{position:relative;height:320px;}
  .hero-content{padding: 12px;}
  .hero-card{margin-top:-110px;}
}



/* ===== HERO GRID (headline + compact form) ===== */
.hero-grid{
  position:relative;
  z-index:2;
  width:min(1100px, 100%);
  display:grid;
  grid-template-columns: 1.2fr 420px;
  gap: 24px;
  align-items:center;
}
.hero-left{
  color:#fff;
  padding: 8px 6px;
}
.hero-badge{
  display:inline-block;
  background: rgba(255,215,0,.16);
  border:1px solid rgba(255,215,0,.35);
  color:#ffd700;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:800;
  font-size: 12px;
  margin-bottom: 12px;
}
.hero-title{
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 12px 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero-title span{ color:#ffd700; }
.hero-sub{
  max-width: 520px;
  opacity:.92;
  font-size: 14px;
}
.hero-cta{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 12px;
}
.hero-call{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background:#ffd700;
  color:#000;
  font-weight:900;
  text-decoration:none;
}
.hero-call:hover{opacity:.92;}
.hero-loc{
  color:#fff;
  opacity:.9;
  font-weight:700;
  font-size: 13px;
}

/* Compact card */
.hero-card-compact{
  padding: 0;
  overflow:hidden;
}
.hero-card-head{
  background:#ff9800;
  padding: 10px 14px;
}
.hero-card-title{
  color:#000;
  font-weight: 900;
  text-align:center;
  font-size: 13px;
  letter-spacing: .02em;
}
.hero-msg{
  margin: 10px 14px 0 14px;
  color:#ffd700;
  font-weight:900;
}
.hero-note{
  padding: 10px 14px 14px 14px;
  font-size: 11px;
  color:#fff;
  opacity:.85;
}

/* Tabs inside compact card */
.hero-card-compact .tabs{
  padding: 12px 14px 0 14px;
  margin:0;
}
.hero-card-compact .tabs button{
  padding: 8px 12px;
  font-size: 12px;
}
.hero-card-compact form{
  padding: 12px 14px 0 14px;
}
.hero-card-compact input, .hero-card-compact textarea{
  padding: 10px 10px;
  font-size: 13px;
  border-radius: 10px;
}
.hero-card-compact button[type="submit"]{
  width:100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background:#ff9800;
  color:#000;
  font-weight: 900;
}

/* Make hero slightly darker so text pops */
.hero .slide img{ filter: brightness(.45); }

/* Responsive */
@media (max-width: 980px){
  .hero-title{font-size: 34px;}
  .hero-grid{grid-template-columns: 1fr; gap: 16px;}
  .hero-card-compact{max-width: 520px; margin: 0 auto;}
}
@media (max-width: 520px){
  .hero-title{font-size: 30px;}
}

