/* === ОБЩИ НАСТРОЙКИ === */
* { box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo img { 
  width: 60px; 
}

header h1 { 
  font-size: 24px; 
  font-weight: 700; 
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

nav a:hover { 
  color: #d10000; 
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  background: #000;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 120px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.cta-button {
  text-decoration: none;
  display: inline-block;
  background: #d10000;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cta-button:hover {
  background: #ff1a1a;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* === SERVICES === */
#services {
  border-top: 2px solid #d10000;
  background: #000;
  padding: 180px 40px 100px; /* ↓ беше 400px, намалено за по-малка дупка */
  text-align: center;
}

#services h2 { 
  font-size: 42px; 
  color: #fff; 
  margin-bottom: 50px; 
}

.services {
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #333;
}

.service:last-child { 
  border-bottom: none; 
}

.service-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.service-info h3 { 
  font-size: 22px; 
  color: #fff; 
  margin: 0; 
}

.service-info .time { 
  font-size: 15px; 
  color: #aaa; 
  margin: 0;
}

.service-price { 
  color: #d10000; 
  font-size: 20px; 
}

/* === OWNER / ЕКИП === */
#owner {
  border-top: 2px solid #d10000;
  padding-top: 60px;
}

.owner-header {
  text-align: center;
  margin-bottom: 40px;
}

.owner-header h2 { 
  font-size: 42px; 
  color: #fff; 
}

.owner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto 60px; /* ↓ беше 100px */
}

.owner-image img {
  width: 400px;
  border-radius: 10px;
  margin-left: -20px;
}

.owner-text {
  max-width: 550px;
  text-align: justify;
}

.owner-subtitle { 
  color: #d10000; 
  font-size: 30px; 
  margin-bottom: 15px; 
}

.owner-text p { 
  font-size: 20px; 
  color: #ddd; 
  line-height: 1.9; 
}

/* === BOOKING === */
#booking {
  background: #0b0b0b;
  color: #f5f5f5;
  text-align: center;
  padding: 100px 20px;
  border-top: 2px solid #d10000;
}

#booking h2 {
  color: #d10000;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.calendar-header button {
  background: #d10000;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.calendar-header button:hover { 
  background: #ff1a1a; 
}

.calendar-header input {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  font-size: 18px;
}

/* === LEGEND === */
.legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
  font-size: 1.1em;
  color: #d10000;
}

.legend-box {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border-radius: 4px;
}

.legend-box.free { background: #28a745; }
.legend-box.booked { background: #dc3545; }
.legend-box.past { background: #555; }
.legend-box.partial { background: #d10000; }

.next-free {
  text-align: center;
  margin: 15px 0;
  font-size: 1.1em;
  color: #d10000;
  font-weight: 500;
}

.next-free i { 
  margin-right: 6px; 
  color: #d10000; 
}

/* === SLOTS GRID === */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 22px auto 0;
}

.time-slot {
  padding: 18px 6px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg,#111,#0a0a0a);
  color: #fff;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.time-slot.free { background: #28a745; color: #fff; }
.time-slot.booked { background: #dc3545 !important; color: #fff !important; }
.time-slot.partial { background: #d10000 !important; color: #000 !important; }
.time-slot.past {
  background: #2f2f2f !important;
  color: #bfbfbf !important;
  border: 1px solid #555 !important;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #111;
  color: #f1f1f1;
  padding: 25px 30px;
  border-radius: 12px;
  width: 400px;
  max-width: 90%;
  text-align: left;
  border: 1px solid #d10000;
}

.modal-content h3 { 
  text-align: center; 
  color: #d10000; 
  font-size: 1.4rem; 
  margin-bottom: 20px; 
}

.modal-content input, .modal-content select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1b1b1b;
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.actions button {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.half-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 20px;
}

.half-option {
  display: flex;
  align-items: center;       /* вертикално центриране */
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  transition: 0.25s;
}

.half-option:hover {
  background: #2a2a2a;
  border-color: #d10000;
}

.half-option input[type="radio"] {
  accent-color: #d10000;
  transform: scale(1.2);
  margin: 0 10px 0 0;       /* радиобутонът е точно до текста */
  flex-shrink: 0;            /* не се свива */
  vertical-align: middle;    /* центриране спрямо текста */
}

.half-option label {
  display: flex;
  align-items: center;       /* текстът и радиобутонът на един ред */
  gap: 8px;                  /* разстояние между текста и часовете */
  font-size: 15px;
  color: #fff;
  cursor: pointer;
}

.half-option .time-text {
  font-weight: 600;
  color: #d10000;
  font-size: 15px;
}


#cancelBtn { background: #333; color: #eee; }
#cancelBtn:hover { background: #444; }

button[type="submit"] { background: #d10000; color: #fff; }
button[type="submit"]:hover { background: #ff1a1a; }

/* === CONTACTS === */
#contacts {
  border-top: 2px solid #d10000;
  padding: 100px 20px;
  text-align: center;
}

#contacts h2 { font-size: 38px; color: #fff; }

.map-container {
  margin-top: 30px;
  max-width: 900px;
  height: 400px;
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* === FOOTER === */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 60px 40px;
  border-top: 2px solid #d10000;
}

footer h2 { 
  color: #d10000; 
  font-size: 28px; 
  margin-bottom: 20px;
}

.working-hours { 
  display: flex; 
  justify-content: center; 
  gap: 40px; 
  font-size: 18px; 
  margin-bottom: 25px; 
  border-bottom: 1px solid #333; 
  padding-bottom: 15px; 
}

.contact-row { 
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  margin-bottom: 25px; 
}

.footer-socials a { 
  color: #fff; 
  margin: 0 10px; 
  font-size: 22px; 
  transition: color 0.3s; 
}

.footer-socials a:hover { color: #d10000; }

.footer-bottom { 
  border-top: 1px solid #333; 
  padding-top: 15px; 
  margin-top: 20px; 
}

.footer-copy { 
  font-size: 15px; 
  color: #aaa; 
  margin-top: 10px; 
}

/* === RADIO BUTTONS В МОДАЛА – хоризонтално подравняване === */
.half-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 20px;
}

.half-option {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  transition: 0.25s;
}

.half-option:hover {
  background: #2a2a2a;
  border-color: #d10000;
}

.half-option input[type="radio"] {
  accent-color: #d10000;
  transform: scale(1.2);
  margin-right: 12px;
}

.half-option label {
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.half-option .time-text {
  font-weight: 600;
  color: #d10000;
  font-size: 15px;
  margin-left: 8px;
}

/* === RADIO BUTTONS – часът и бутонът на един ред === */
.half-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 20px;
}

.half-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  transition: 0.25s;
  white-space: nowrap; /* 🚀 задължава текста да е в един ред */
}

.half-option:hover {
  background: #2a2a2a;
  border-color: #d10000;
}

.half-option label {
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.half-option input[type="radio"] {
  accent-color: #d10000;
  transform: scale(1.2);
  margin-left: 12px;
}

/* опционално: активният ред да се оцветява */
.half-option input[type="radio"]:checked + label {
  color: #d10000;
  font-weight: 600;
}

/* === HOVER ефект за свободни и частично заети часове === */
.time-slot.free:hover,
.time-slot.partial:hover {
  transform: scale(1.07);
  box-shadow: 0 0 12px rgba(209, 0, 0, 0.4);
  cursor: pointer;
  z-index: 2;
}

.time-slot.free:hover {
  background: #2ecc71; /* по-свежо зелено при hover */
}

.time-slot.partial:hover {
  background: #ff3333; /* по-ярко червено за частично зает */
}

/* === 📱 MOBILE RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  /* общо подравняване и предотвратяване на хоризонтално плъзгане */
  body {
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 10px 20px;
    
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  nav a {
    font-size: 25px;
  }

  .hero {
    height: auto;
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 95%;
  }

  #services {
    padding: 100px 20px;
  }

  .service {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .service-info h3 {
    font-size: 20px;
  }

  .service-price {
    font-size: 18px;
  }

  .owner-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .owner-image img {
    width: 90%;
    margin-left: 0;
  }

  .owner-text {
    max-width: 90%;
    text-align: justify;
    padding: 0 16px;
  }

  #booking {
    padding: 80px 15px;
  }

  .calendar-header {
    flex-direction: row; 
    justify-content: center; 
    align-items: center;
    gap: 10px; 
  }

  .calendar-header button {
    padding: 6px 12px; 
    font-size: 18px;
  }

  .calendar-header input {
    font-size: 16px;
    padding: 8px 10px;
    width: auto; 
    text-align: center;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  #contacts {
    padding: 80px 15px;
  }

  .map-container {
    width: 100%;
    height: 300px;
  }

  footer {
    padding: 40px 20px;
  }

  .working-hours {
    flex-direction: column;
    gap: 8px;
  }

  .contact-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 10px 24px;
    font-size: 1rem;
  }

 .hero {
    padding-bottom: 80px; 
  }

  #services h2,
  .owner-header h2,
  #booking h2,
  #contacts h2 {
    font-size: 1.8rem;
  }

  .slots-grid {
    grid-template-columns: 1fr;
    justify-items: center; 
  }

  .time-slot {
    width: 85%; 
    padding: 14px 10px; 
    font-size: 1rem;
    border-radius: 8px;
  }

  .legend {
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    padding: 0 15px;
    flex-wrap: wrap;
  }

  .legend-box {
    width: 12px;
    height: 12px;
  }

  nav a {
    font-size: 20px;
  }

  header h1 {
    font-size: 20px;
  }

    .service-info {
    align-items: center;
    text-align: center;
  }

  .service-info h3,
  .service-info .time {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .half-option input[type="radio"] {
    margin-left: 35px;   /* премества само хоризонтално */
    margin-top: 0;       /* няма вертикален margin */
    margin-bottom: 0;    /* няма вертикален margin */
    flex-shrink: 0;
  }

  .half-option label {
    justify-content: flex-start;
  }
}
