.hero-section {
  margin-top: var(--header-height);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-section .swiper {
  width: 100%;
  height: 60vh;
  position: relative;
  z-index: 1;
}

.hero-section .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-section .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-section .swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-section .swiper-slide iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-video-container {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-company-info {
  width: 100%;
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.company-info-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: center;
}

.company-title {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.company-description {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0 0 15px 0;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.company-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #4a4a4a;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color-light);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color-light);
  border: 2px solid var(--accent-color-light);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

.hero-company-info .btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.hero-company-info .btn-secondary:hover {
  background-color: #ffffff;
  color: #000000;
}

@media (max-width: 768px) {
  .hero-section .swiper {
    height: 45vh;
  }

  .hero-video-container {
    height: 45vh;
  }

  .hero-company-info {
    padding: 30px 20px;
  }

  .company-title {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
  }

  .company-description {
    font-size: 16px;
    margin-bottom: 12px;
    color: #4a4a4a;
  }

  .company-tagline {
    font-size: 12px;
    color: #4a4a4a;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-color-light);
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.estimate-form,
.wpcf7-form.estimate-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.estimate-form p,
.wpcf7-form.estimate-form p {
  margin: 0;
  padding: 0;
}

.form-group,
.estimate-form .wpcf7-form-control-wrap {
  position: relative;
}

.form-group-with-button {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.estimate-form .form-group-with-button {
  display: block;
  width: 100%;
}

.estimate-form .form-group-with-button > div {
  flex: 1;
}

.estimate-form .form-group-with-button > p {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  align-items: end;
  gap: 0 20px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 25px;
  position: relative;
}

.estimate-form .form-group-with-button > p br {
  display: none !important;
}

.estimate-form .form-group-with-button > p .wpcf7-form-control-wrap {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  position: relative;
  display: block;
}

.estimate-form
  .form-group-with-button
  > p
  .wpcf7-form-control-wrap
  input[type='tel'],
.estimate-form
  .form-group-with-button
  > p
  .wpcf7-form-control-wrap
  input[type='text'] {
  width: 100%;
  display: block;
}

.estimate-form
  .form-group-with-button
  > p
  .wpcf7-form-control-wrap
  .wpcf7-not-valid-tip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  z-index: 10;
  white-space: nowrap;
}

.estimate-form .form-group-with-button > p .wpcf7-submit,
.estimate-form .form-group-with-button > p input[type='submit'] {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  white-space: nowrap;
}

.estimate-form .wpcf7-spinner {
  display: none !important;
  grid-column: none;
  grid-row: none;
}

.estimate-form .wpcf7-form-control-wrap:has(.wpcf7-submit) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.estimate-form .wpcf7-form-control-wrap:last-of-type {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.estimate-form
  .wpcf7-form-control-wrap:last-of-type
  .wpcf7-form-control:not(.wpcf7-submit) {
  flex: 1;
}

.estimate-form .form-group-with-button .wpcf7-form-control-wrap {
  flex: 1;
}

.form-group input,
.form-group textarea,
.estimate-form input[type='text'],
.estimate-form input[type='tel'],
.estimate-form input[type='email'],
.estimate-form .wpcf7-form-control.wpcf7-text,
.estimate-form .wpcf7-form-control.wpcf7-tel,
.estimate-form .wpcf7-form-control.wpcf7-textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 0 0 8px 0;
  border: none;
  border-bottom: 1px solid currentColor;
  background: transparent;
  width: 100%;
  color: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.estimate-form input[type='text']::placeholder,
.estimate-form input[type='tel']::placeholder,
.estimate-form input[type='email']::placeholder,
.estimate-form .wpcf7-form-control.wpcf7-text::placeholder,
.estimate-form .wpcf7-form-control.wpcf7-tel::placeholder,
.estimate-form .wpcf7-form-control.wpcf7-textarea::placeholder {
  color: #666666;
  opacity: 1;
}

.form-group input:hover,
.form-group textarea:hover,
.estimate-form input[type='text']:hover,
.estimate-form input[type='tel']:hover,
.estimate-form input[type='email']:hover,
.estimate-form .wpcf7-form-control.wpcf7-text:hover,
.estimate-form .wpcf7-form-control.wpcf7-tel:hover,
.estimate-form .wpcf7-form-control.wpcf7-textarea:hover {
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.estimate-form input[type='text']:focus,
.estimate-form input[type='tel']:focus,
.estimate-form input[type='email']:focus,
.estimate-form .wpcf7-form-control.wpcf7-text:focus,
.estimate-form .wpcf7-form-control.wpcf7-tel:focus,
.estimate-form .wpcf7-form-control.wpcf7-textarea:focus {
  outline: none;
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

.form-group textarea,
.estimate-form .wpcf7-form-control.wpcf7-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit-text,
.estimate-form input[type='submit'],
.estimate-form .wpcf7-submit {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.btn-submit-text:hover,
.estimate-form input[type='submit']:hover,
.estimate-form .wpcf7-submit:hover {
  color: var(--accent-color-light);
}

.btn-submit-text:active,
.estimate-form input[type='submit']:active,
.estimate-form .wpcf7-submit:active {
  color: var(--accent-color-light);
}

.estimate-form .wpcf7-not-valid-tip,
.estimate-form .wpcf7-response-output,
.estimate-form .wpcf7-mail-sent-ok,
.estimate-form .wpcf7-mail-sent-ng,
.estimate-form .wpcf7-spam,
.estimate-form .wpcf7-validation-errors {
  display: none !important;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-subtitle {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea,
  .estimate-form input[type='text'],
  .estimate-form input[type='tel'],
  .estimate-form input[type='email'],
  .estimate-form .wpcf7-form-control.wpcf7-text,
  .estimate-form .wpcf7-form-control.wpcf7-tel,
  .estimate-form .wpcf7-form-control.wpcf7-textarea {
    font-size: 14px;
    padding: 0 0 8px 0;
  }

  .form-group-with-button,
  .estimate-form .form-group-with-button,
  .estimate-form .wpcf7-form-control-wrap:last-of-type {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .estimate-form .form-group-with-button > p {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 30px 0;
    padding-bottom: 0;
  }

  .estimate-form .form-group-with-button > p .wpcf7-submit,
  .estimate-form .form-group-with-button > p input[type='submit'] {
    grid-column: 1;
    grid-row: 2;
    align-self: flex-end;
  }

  .estimate-form
    .form-group-with-button
    > p
    .wpcf7-form-control-wrap
    .wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
  }

  .btn-submit-text,
  .estimate-form input[type='submit'],
  .estimate-form .wpcf7-submit {
    align-self: flex-end;
    font-size: 14px;
  }
}
