/* -------------- MAIN -------------- */

:root {
  --primary: #00c0a7;
  --dark: #444;
  --light: #f9f9f9;
  --gray: #e0e0e0;
  --pink: #ff4d8a;
  --blue-pastel-bg: #bbc9dd;
}

html, body {
  height: 100%;
  margin: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo img {
  height: 60px; 
  width: auto;
  display: block;
}
.header-buttons {
  display: flex;
  gap: 15px;
}
nav {
  position: relative;
  left: 50px; /* paslinkimas į dešinę */
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}
nav a:hover {
  color: var(--primary);
}

.button-pink {
  background-color: var(--pink);
  color: white;
  border: none;
  padding: 10px 25px; /*(pading sutvarkyti)*/
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1em;
  text-decoration: none; 
}
.button-pink:hover {
  background-color: #e03e79;
}


/* Footer */
footer {
  background: #ffffff;
  text-align: center;
  padding: 5px;
  font-size: 0.9em;
  color: #666;
  margin: 0;
  
}





/* -------------- Main -------------- */

/*Header*/
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: all 0.3s ease;
  }
  nav.show {
    display: flex;
  }
  
  /* Hamburger matomas tik telefone */
  .hamburger {
    display: block;
    margin-left: 15px;
  }
  
  .header-buttons .button-pink {
    padding: 10px 18px;   /* mažesnis padding */
    font-size: 0.9em;    /* mažesnis tekstas */
  }

  .header-buttons {
    top: 20px; /* šiek tiek aukščiau */
  }

  
  header {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding: 20px;
  }
}





/* ====================
   pagalba
==================== */

.reservation-help {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #363636;
}

.reservation-help a {
  color: #ff4d8a;
  text-decoration: none;
  font-weight: 600;
}

.reservation-help a:hover {
  text-decoration: underline;
}



/* ====================
   info icon
==================== */

.form-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}



.form-textarea {
    width: 550px;
  
  min-height: 120px;
  resize: vertical;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;

  /* BŪTINA, kad tekstas laužytųsi */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.form-hint {
  font-size: 0.875rem;
  color: #6b7280; /* pilkšvas tekstas */
  margin-top: 0.25rem;
}


.form-input::placeholder {
  font-size: 0.75rem;   /* mažesnis šriftas tik placeholder'io tekstui */
  color: #888;          /* opcionaliai – šviesesnis placeholder */
}






.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  border-radius: 50%;
  background-color: #9ca3af;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

/* Tooltip stilius */
.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* virš ikonėlės */
  left: 500%;
  transform: translateX(-50%);
  background-color: #111827;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: normal;
  width: 220px;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

/* Maža rodyklė po tooltip */
.info-icon::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Rodo tooltip užvedus */
.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
}


@media (max-width: 768px) {
  .form-textarea {
    width: 80%;     /* užima visą kortelės plotį */
    max-width: 95vw; /* saugiai iki ekrano kraštų */
  }
  

/* Tooltip stilius */
.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* virš ikonėlės */
  left: -450%;
  transform: translateX(-50%);
  background-color: #111827;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: normal;
  width: 220px;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.form-input {
    width: 90%;     /* užima visą kortelės plotį */
    max-width: 95vw; /* saugiai iki ekrano kraštų */
}

}


/* ====================
   Pagrindinis stilius
==================== */
body {
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #C4FFEA;
  margin: 0;
  padding: 0;
  color: #333;

}

h1 {
  text-align: center;
  margin: 30px 0;
  color: #2c3e50;
}

/* ====================
   Menu
==================== */
.menu {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* susilenks į kitą eilę mobiliajame */
  gap: 10px;       /* tarpai tarp mygtukų */

}

.menu button {
  background-color: #ff4d8a;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1em;
}

main {
  flex: 1;  /* užima visą likusią vietą tarp header ir footer */
  margin-bottom: 40px;  /* tarpas prieš footer */
}

.menu button:hover {
  background-color: #e03e79;
}

/* ====================
   Stepper
==================== */
.stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* mobiliajame persilenks */
  gap: 0;
  margin-bottom: 20px;
  justify-content: center;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-indicator.active {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-indicator .circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background-color: white;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-indicator.active .circle {
  background-color: #ff4d8a;
  color: white;
  border-color: #e03e79;
}

.step-indicator .label {
  font-weight: bold;
  color: #555;
}

.step-indicator + .step-indicator::before {
  flex-shrink: 0;
  content: "➡";
  margin: 0 12px;
  color: #555;
  font-weight: bold;
}

/* ====================
   Steps
==================== */
.step {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}
.step.active {
  display: block;
  opacity: 1;
}

/* ====================
   Buttons
==================== */
button {
  margin-top: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  background: #ff4d8a;
  color: white;
  cursor: pointer;
  transition: 0.3s;
} 
button:hover { background: #e03e79; }

/* ====================
   Kortelės / formos
==================== */
.section {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.active { display: block; }

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 500;
  margin-bottom: 5px;
}

input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

input:focus {
  outline: none;
  border: 1px solid #3498db;
}

/* ====================
   Laikai
==================== */
.time-slot {
  display: inline-block;
  width: 80px;
  padding: 10px;
  margin: 5px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  background-color: #2ecc71;
  color: white;
  transition: transform 0.2s, background 0.3s;
}

.time-slot:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.time-slot.reserved { cursor: not-allowed; opacity: 0.6; }
.time-slot.pending { background-color: #f1c40f; }
.time-slot.confirmed { background-color: #e74c3c; }

/* ====================
   Kalendorius
==================== */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 500px;
  margin-top: 15px;
}

.day {
  padding: 12px 0;
  border-radius: 6px;
  background: #2ecc71;
  text-align: center;
  font-weight: 500;
}

.day.weekday {
  background: #95a5a6;
  color: white;
  font-weight: bold;
}

.day.pending { background-color: #f1c40f; color: #000; }
.day.confirmed { background-color: #e74c3c; color: white; }
.day.selected { background-color: #f1c40f; color: white; }








/* ====================
   Responsive taisyklės
==================== */

@media (max-width: 480px) {

  /* Kortelė */
  .section {
    width: 90%;
    margin: 10px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  /* Meniu mygtukai */
  .menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
  }

  .menu button {
    flex: 1;
    padding: 10px 0;
    font-size: 0.95em;
    text-align: center;
    box-sizing: border-box;
  }

  /* Stepperiai - vertikaliai */
  .stepper{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .step-indicator + .step-indicator.active {
    flex: none;
    font-size: 0.9em;
    gap: 8px;
    width: 100%;             /* užima visą plotį */
    content: "";          /* rodyklės mobiliesiems išjungtos */
  }
  
  .step-indicator::before{
    content: "";          /* rodyklės mobiliesiems išjungtos */
    margin: 0;
  }

  .step-indicator .circle {
    width: 25px;
    height: 25px;
    line-height: 23px;
    font-size: 0.8em;
  }

  .step-indicator .label {
    flex: 1;                 /* užpildo likusį plotį */
    display: inline-block;
    white-space: normal; /* leidžia tekstui eiti per kelias eilutes */
  }



  /* Input laukai */
  input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  /* Mygtukai kortelėse */
  button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 10px 0;
  }

  /* Time slots kortelėse */
  .time-slot {
    width: 45%;
    margin: 5px 2.5%;
    font-size: 0.9em;
  }

  /* Kalendorius */
  .calendar {
    max-width: 100%;
    gap: 4px;
  }

  .day {
    padding: 10px 0;
    font-size: 0.85em;
  }

}
