html {
  scroll-behavior: smooth;
}
body {
  padding-top: 70px;
  color: #646464;
  background-color: #efefef;
}

.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.row .column {
  flex: 33.3;
  width: auto;
  overflow: hidden;
  padding: 0 4px;
  height: 100%;
}

.row .column img {
  margin-top: 2%;
  width: 100%;
  height: 100%;
  cursor: pointer;
  filter: grayscale(1) brightness(0.5);
  border-radius: 5px;
  transition: 0.3s linear;
}

.row .column img:hover {
  filter: grayscale(0) brightness(1);
}

@media only screen and (max-width: 800px) {
  .row .column {
    flex: 50%;
  }
}

@media only screen and (max-width: 600px) {
  .row .column {
    flex: 100%;
  }
  .row .column img {
    filter: grayscale(0) brightness(1);
  }
}

h1,
h2,
h3,
.highlight,
.navbar a {
  font-family:
    "Oswald",
    arial narrow,
    sans-serif;
}

footer {
  margin-top: 40px;
  padding-top: 40px;
  margin-bottom: 0;
  padding-bottom: 40px;
  background-color: #cecece;
}

#masthead {
  min-height: 199px;
  background-color: white;
  max-height: fit-content;
  margin-bottom: 0;
}

.top-spacer {
  background-color: #ffffff;
  height: 40px;
}

a,
a:hover {
  text-decoration: none;
}

a {
  color: black;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.15em;

  display: inline-block;
  position: relative;
}
a:after {
  background: none repeat scroll 0 0 transparent;
  bottom: 0;
  content: "";
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  background: #fff;
  transition:
    width 0.3s ease 0s,
    left 0.3s ease 0s;
  width: 0;
}
a:hover:after {
  width: 100%;
  left: 0;
}

.icon-bar {
  background-color: #fff;
}

.navbar {
  padding: 0;
  opacity: 0.9;
}

.navbar-bright {
  background-color: #000022;
  color: #fff;
  margin-bottom: 0;
  border-width: 0;
}

.navbar-bright a,
.navbar-bright {
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-brand,
.navbar-header {
  font-size: 20px;
  font-family:
    Corbert Condensed Italic,
    sans-serif;
  letter-spacing: normal;
}

.nav-item {
  padding: 1.15rem 0.8rem 1rem 1rem;
  cursor: pointer;
}

.nav-item:hover {
  background-color: rgb(19, 24, 73);
}

.logo {
  background-image: url(/img/logo.jpg);
  background-size: cover;
  background-position: center;
  width: 280px;
  height: 200px;
  position: relative;
}

#booking_link {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#booking_link:hover {
  background-color: white;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#opentime_block {
  flex: 1;
  min-width: 150px;
  text-align: right;
  width: 280px;
}

#contacts {
  flex: 1;
  min-width: 200px;
  width: 280px;
}

.contacts-info {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .contacts-info {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    text-align: center;
  }
}

.contact-block {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-block p {
  margin-bottom: 0.75rem;
}

.phone-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.phone-link:hover {
  text-decoration: underline;
}

.carousel-caption {
  margin: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  background: rgb(192, 192, 192);
  background: linear-gradient(
    0deg,
    rgba(192, 192, 192, 0.4738270308123249) 20%,
    rgba(192, 192, 192, 0.6727065826330532) 40%,
    rgba(192, 192, 192, 0.8155637254901961) 60%,
    rgba(192, 192, 192, 0.9332107843137255) 80%
  );
}

.pricelist {
  margin: 0 auto;
}

.card {
  margin: 0 auto;
  margin-bottom: 5rem;
  padding: 0rem;
  margin-bottom: 0px;
}

.btn-facebook {
  background-color: #3b5998;
  color: #fff;
}
.icon-facebook-div {
  padding: 0.7rem 0.8rem 0rem 1rem;
  right: 0;
}

.btn-facebook:hover {
  background-color: #2a4998;
  color: #4c6bba;
}

.event-shedule .nav-pills .nav-link {
  padding: 25px 20px !important;
  margin-bottom: 5px;
  color: #1b3a57;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  border: 1px solid transparent;
  background: #fff;
  width: 100%;
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.event-shedule .nav-pills .nav-link:hover {
  background: rgb(19, 24, 73);
  color: #fff;
}

.event-shedule .nav-pills .nav-link.active {
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: #000022;
}

.speaker-wrap {
  width: 100%;
  background: #fff;
  padding: 5px;
  font-size: small;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border: 1px solid black;
  border-radius: 22px;
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  font-weight: 400;
}

#calendar a {
  color: black;
}

div.fc-event-main,
div.fc-timegrid-event-harness {
  min-height: 20px;
}
@media screen and (max-width: 1000px) {
  .carousel-caption {
    font-size: 12px;
  }
  #booking_link {
    font-size: 12px;
  }

  #masthead {
    font-size: 12px;
  }
}
@media screen and (max-width: 769px) {
  .logo {
    display: none;
  }
}

#mySlider {
  margin-top: 0;
}

.temp-alert {
  text-align: center;
  position: relative;
  bottom: 30px;
  margin: 0;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

@media (max-width: 768px) {
  .header-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.carousel-control-prev,
.carousel-control-next {
  filter: invert(100%);
}

.masthead {
  height: 100vh;
  min-height: 500px;
  background-image: url("../../img/masthead-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Booking form improvements */
.form-section {
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
}

.form-section:hover {
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control-lg,
.form-select-lg {
  border-radius: 0.375rem;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.loading {
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

#submit_block .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  width: 100%;
  max-width: 400px;
}

/* Booking Card Responsive */
.booking-card {
  margin: 1rem auto;
  margin-bottom: 5rem;
  width: 95%;
  max-width: 750px;
}

@media (min-width: 768px) {
  .booking-card {
    width: 90%;
    max-width: 800px;
  }
}

@media (min-width: 992px) {
  .booking-card {
    width: 75%;
    max-width: 900px;
  }
}

/* Form Section Mobile */
.form-section {
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
  margin-bottom: 1rem !important;
}

@media (max-width: 576px) {
  .form-section {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .form-section h5 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
}

.form-section:hover {
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .form-label {
    font-size: 0.9rem;
  }
}

.form-control-lg,
.form-select-lg {
  border-radius: 0.375rem;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 44px; /* Mobile touch target */
}

@media (max-width: 576px) {
  .form-control-lg,
  .form-select-lg {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.65rem 0.8rem;
  }
}

.form-control-lg:focus,
.form-select-lg:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.loading {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

@media (max-width: 576px) {
  .loading {
    padding: 1rem;
  }
}

.spinner-border-sm {
  width: 1.5rem;
  height: 1.5rem;
}

#submit_block .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  width: 100%;
  max-width: 400px;
  min-height: 44px;
}

@media (max-width: 576px) {
  #submit_block .btn {
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
  }
}

.card {
  border: none;
  border-radius: 0.5rem;
}

@media (max-width: 576px) {
  form.needs-validation {
    padding: 1rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
  
  .invalid-feedback {
    font-size: 0.85rem;
  }
}

/* Responsive hairdress select */
#hairdress_select {
  width: 100%;
}

@media (max-width: 576px) {
  #hairdress_select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    height: auto;
  }
}

@media (max-width: 480px) {
  #hairdress_select {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem !important;
  }
}

/* Keep normal size on desktop */
@media (min-width: 992px) {
  #hairdress_select {
    font-size: 1rem;
    padding: 0.75rem 1rem !important;
  }
}

/* ===== HEADER & NAVIGATION ===== */
#masthead-info {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1.5rem 1rem;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Left Column - Opening Times */
#opentime_block {
  justify-self: start;
  text-align: left;
}

.dropdown-menu {
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
}

/* Center Column - Logo */
.logo-container {
  justify-self: center;
  display: flex;
  justify-content: center;
}

.logo {
  width: 160px;
  height: 160px;
  background-color: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
}

/* Right Column - Contacts */
#contacts {
  justify-self: end;
  text-align: right;
}

.contacts-info {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.contact-block {
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-block p {
  margin-bottom: 0.75rem;
}

.phone-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.phone-link:hover {
  text-decoration: underline;
}

/* ===== TABLET RESOLUTION (768px - 991px) ===== */
@media (max-width: 991px) {
  .header-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  #opentime_block {
    justify-self: center;
    text-align: center;
  }

  .logo-container {
    justify-self: center;
    order: -1;
  }

  #contacts {
    justify-self: center;
    text-align: center;
  }

  .contacts-info {
    justify-content: center;
    gap: 1.5rem;
  }

  .logo {
    width: 140px;
    height: 140px;
  }
}

/* ===== MOBILE RESOLUTION (max-width: 768px) ===== */
@media (max-width: 768px) {
  #masthead-info {
    padding: 1rem 0.75rem;
  }

  .header-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #opentime_block {
    justify-self: center;
    text-align: center;
  }

  .logo-container {
    justify-self: center;
    order: -1;
    margin-bottom: 0.5rem;
  }

  #contacts {
    justify-self: center;
    text-align: center;
  }

  .contacts-info {
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  .logo {
    width: 240px;
    height: 240px;
    font-size: 0.8rem;
  }

  .contact-block {
    font-size: 0.85rem;
  }

  .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  #masthead-info {
    padding: 0.75rem 0.5rem;
  }

  .header-container {
    gap: 0.75rem;
  }

  .logo {
    width: 100px;
    height: 100px;
    font-size: 0.7rem;
  }

  .contact-block {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .contacts-info {
    gap: 0.75rem;
  }

  .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ...existing code... */

/* ===== HERO SECTION ===== */
.masthead {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
              url('/img/masthead-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 4rem 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .masthead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), 
                url('/img/masthead-bg.jpg') center/cover no-repeat;
    background-attachment: scroll;
    padding: 2rem 1rem;
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .masthead {
    min-height: 250px;
    padding: 1.5rem 1rem;
  }
}

.masthead-content {
  width: 100%;
  max-width: 600px;
}

.booking-hero {
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

.worker-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.scroll-indicator {
  margin-top: 2rem;
}

.scroll-link {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.scroll-link:hover {
  background-color: white;
  color: #667eea;
  transform: translateY(-3px);
}

.icon-arrow-down {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: white;
  padding: 3rem 1rem;
}

@media (max-width: 768px) {
  .services-section {
    padding: 2rem 1rem;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

.worker-services {
  margin-bottom: 3rem;
}

.worker-name {
  font-size: 1.8rem;
  color: #667eea;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 2px solid #667eea;
}

@media (max-width: 768px) {
  .worker-name {
    font-size: 1.4rem;
  }
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Service Cards */
.service-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.card-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .card-image-wrapper {
    height: 200px;
  }
}

.card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  background-color: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.card-text {
  font-size: 0.9rem;
  color: #646464;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.card-footer {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

.card-footer .btn {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: #333;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 3px solid #667eea;
}

.main-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.main-footer a:hover {
  color: #7c8eea;
  text-decoration: underline;
}

/* ===== UTILITIES ===== */
.btn-facebook {
  background-color: #1877f2;
  border-color: #1877f2;
  color: white;
  transition: all 0.3s ease;
}

.btn-facebook:hover {
  background-color: #165ec7;
  border-color: #165ec7;
  color: white;
  transform: translateY(-2px);
}

.icon-facebook {
  margin-right: 0.5rem;
}

.icon-facebook-div {
  display: flex;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
  }

  .navbar-nav {
    flex-direction: column;
  }

  .nav-item {
    padding: 0.5rem 0;
  }

  .nav-link {
    color: white !important;
    padding-left: 1rem !important;
  }
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-in-out;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: slideUp 0.3s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 45px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  line-height: 1;
}

.close-modal:hover {
  color: #667eea;
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .close-modal {
    top: 20px;
    right: 20px;
    font-size: 30px;
  }

  .modal-image {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* Make card images clickable indicator */
.card-img-top {
  transition: all 0.3s ease;
}

.card-img-top:hover {
  opacity: 0.8;
}
