/*Basic flexboxs*/
.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.hero-section {
  background-image: url(/assets/img/hero-bg.webp) !important;
}

/*Centered flexbox*/
.row-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*=============*/
/*===BUTTONS===*/
/*=============*/

.btn,
.btn-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 300;
}

/* Button shine effect base */
.btn-2 {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn-2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    var(--light-gray),
    transparent
  );
  transform: skewX(15deg);
  transition: left 0.6s ease;
}

.btn-2:hover {
  transform: scale(1.05);
}

.btn-2:hover::after {
  left: 125%;
}

/* Dark/Image background buttons */
.dark-background .btn-2,
.image-background .btn-2 {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
}

/* Primary/Light background buttons */
.primary-background .btn-2,
.light-background .btn-2 {
  background-color: var(--secondary-color);
  color: var(--light-color);
  border: none;
}

/*========================*/
/*===UNIFIED FORM STYLES===*/
/*========================*/

/* Typography */
.offer-title,
.contact-title {
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-color-oposite);
}

.offer-title {
  font-size: 52px;
}

.offer-subtitle,
.contact-subtitle {
  opacity: 0.9;
  line-height: 1.4;
  color: var(--tertiary-light);
}

.offer-subtitle {
  font-size: 1.6rem;
  max-width: 900px;
}

/* Form Containers */
.offer-form {
  display: flex;
  flex-direction: column;
  padding: 40px;
  gap: 30px;
  box-shadow: 0 20px 60px rgba(20, 20, 24, 0.15);
  height: auto;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--light-color);
}

.offer-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10;
}

.offer-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(20, 20, 24, 0.2);
}

/* Form Layout - Unified */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 10;
}

.contact-form-wrapper .form-fields {
  width: 90% !important;
  animation: formSlideIn 0.8s ease-out 0.5s both;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group,
.form-group.full-width {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  position: relative;
}

.form-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color-main);
  transition: color 0.3s ease;
}

/* Input Elements - Unified */
.form-input,
.form-select {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Default input backgrounds */
#detailed-offer .form-input,
#detailed-offer .form-select,
#detailed-offer .phone-input-container {
  background: var(--white);
  color: var(--text-color-main);
}

#get-offer .form-input,
#get-offer .form-select,
#get-offer .phone-input-container,
#consultation .form-input,
#consultation .form-select,
#consultation .phone-input-container,
.offer-section .phone-input-container,
.visit-section .phone-input-container {
  background: var(--light-glass);
  color: var(--light-color);
}

#get-offer .form-select option,
#consultation .form-select option {
  background: var(--light-color);
  color: var(--shadow-color);
}

/* Unified focus states */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.phone-input-container:focus-within {
  outline: none;
  border-color: var(--primary-color);
  background: var(--light-glass-hover);
  box-shadow: 0 0 0 3px rgba(238, 10, 16, 0.1);
  transform: translateY(-2px);
}

.form-input:focus + .form-label,
.form-select:focus + .form-label,
.form-textarea:focus + .form-label {
  color: var(--primary-color);
}

/* Input pseudo elements */
.form-input::before,
.form-select::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--light-color);
  transition: width 0.3s ease;
}

/* Textarea */
.form-textarea {
  height: 90px;
  font-size: 15px;
  border: none;
  background: var(--light-glass);
  color: var(--text-color-main);
  resize: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Phone Input - Unified */
.phone-input-container {
  display: flex;
  height: 50px;
  overflow: hidden;
  border: none;
  transition: all 0.3s ease;
}

.phone-input-container .country-code-select,
.phone-input-container .country-code-mobile-trigger {
  border: none;
  background: var(--light-color);
  border-right: 1px solid var(--light-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 100%;
}

.phone-input-container .country-code-select {
  padding: 0 28px 0 12px;
  font-size: 1rem;
  min-width: 85px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

.phone-input-container .country-code-mobile-trigger {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
}

.phone-input-container .country-code-select:focus,
.phone-input_container .country-code-mobile-trigger:focus {
  background-color: rgba(238, 10, 16, 0.05);
}

.phone-input-container .country-code-mobile-trigger .selected-flag {
  font-size: 1.1rem;
}

.phone-input-container .country-code-mobile-trigger .selected-code {
  font-size: 0.8rem;
  color: #666;
}

.phone-input-container .country-code-mobile-trigger .dropdown-icon {
  width: 10px;
  height: 10px;
  color: #666;
}

.phone-input-container .phone-number {
  border: none !important;
  flex: 1;
  outline: none;
  box-shadow: none !important;
  margin: 0;
  padding: 0 15px;
  font-size: 0.9rem;
  height: 100%;
  background: transparent;
}

/* Submit Button */
.form-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.form-submit {
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--text-color-oposite);
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(238, 10, 16, 0.3);
}

.form-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.form-submit:hover {
  background: linear-gradient(
    135deg,
    var(--primary-hover),
    var(--primary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(238, 10, 16, 0.4);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:active {
  transform: translateY(-1px);
}

/*========================*/
/*===CONTACT FORM SPECIFIC===*/
/*========================*/

/* Contact Wrapper */
.contact-wrapper {
  width: 95%;
  max-width: 1480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.contact-header {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.contact-form-wrapper {
  display: flex;
  width: 95%;
  height: auto;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  animation: slideInScale 1s ease-out 0.3s both;
}

/* Form Info Section */
.form-info {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.form-info::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: infoBackground 20s linear infinite;
  pointer-events: none;
}

/* Form Icon */
.form-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--light-color),
    rgba(243, 238, 239, 0.9)
  );
  color: var(--primary-color) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
  animation: iconFloat 3s ease-in-out infinite alternate;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(238, 10, 16, 0.2),
    transparent
  );
  transform: rotate(45deg);
  animation: iconShine 2s ease-in-out infinite;
}

.form-icon i,
.offer-section .form-icon i {
  color: var(--primary-color) !important;
}

/* Form Info Text */
.form-info-title {
  font-size: 28px;
  font-weight: 400;
  color: var(--light-color);
  text-align: center;
  text-shadow: 1px 1px 3px rgba(20, 20, 24, 0.3);
  position: relative;
  z-index: 2;
}

.form-info-text {
  font-size: 16px;
  color: var(--light-color);
  opacity: 0.9;
  text-align: center;
  line-height: 1.6;
  max-width: 90%;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 2px rgba(20, 20, 24, 0.2);
}

/* Form Content */
.form-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.form-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    rgba(183, 150, 138, 0.1) 0%,
    transparent 70%
  );
  animation: contentDecor 15s linear infinite;
  pointer-events: none;
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-item i {
  color: var(--secondary-light) !important;
  font-size: 1.1rem;
  animation: iconPulse 2s ease-in-out infinite;
}

/* Visit Section Overrides */
.contact-section.visit-section {
  background: var(--shadow-color);
}

.visit-section .contact-title {
  color: var(--light-color);
}

.visit-section .contact-subtitle {
  color: var(--tertiary-light);
}

.visit-section .form-info {
  background: linear-gradient(
    135deg,
    var(--shadow-color) 0%,
    rgba(20, 20, 24, 0.9) 100%
  );
}

.visit-section .form-info::before {
  background: radial-gradient(
    circle,
    rgba(183, 150, 138, 0.1) 0%,
    transparent 70%
  );
}

.visit-section .form-icon {
  background: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--tertiary-dark)
  );
}

.visit-section .form-icon i {
  color: var(--light-color) !important;
}

.visit-section .form-icon::before {
  background: linear-gradient(
    45deg,
    transparent,
    rgba(169, 139, 104, 0.3),
    transparent
  );
}

/* Placeholders */
.offer-section .phone-input::placeholder,
.visit-section .phone-input::placeholder {
  color: var(--light-gray) !important;
}

.offer-section .country-button .code,
.visit-section .country-button .code {
  color: var(--light-color) !important;
}

#get-offer .country-button,
#consultation .country-button {
  background: var(--light-glass) !important;
}

/*========================*/
/*===ANIMATIONS===*/
/*========================*/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes iconShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(0%) translateY(0%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes infoBackground {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes contentDecor {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-20px) translateY(20px);
  }
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*========================*/
/*===RESPONSIVE DESIGN===*/
/*========================*/

@media (max-width: 1024px) {
  /* Animations off */
  .detailed-offer::before,
  .section-bottom::before {
    animation: none;
  }

  .section-content-left::before,
  .section-content-right::after {
    display: none;
  }

  /* Layout adjustments */
  .section-top,
  .section-bottom {
    height: auto;
    min-height: 100vh;
  }

  .offer-section-top,
  .offer-section-bottom {
    flex-direction: column;
    width: 95%;
    gap: 40px;
    padding: 40px 0;
  }

  /* Forms */
  .offer-form {
    padding: 30px;
    gap: 25px;
  }

  .form-fields {
    gap: 18px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-button-container {
    padding: 15px 0;
  }

  /* Phone input */
  .phone-input-container {
    width: 100%;
    height: 45px;
  }

  .phone-input-container .country-code-select {
    display: none;
  }

  .phone-input-container .country-code-mobile-trigger {
    display: flex;
  }

  .phone-input-container .phone-number {
    padding: 0 12px;
    font-size: 1rem;
  }

  /* Contact form */
  .contact-wrapper,
  .contact-form-wrapper {
    width: 95%;
  }

  .contact-form-wrapper {
    flex-direction: column;
    min-height: 600px;
  }

  .form-info,
  .form-content {
    width: 100%;
  }

  .form-info {
    height: auto;
    min-height: 180px;
  }

  .form-content {
    height: auto;
    min-height: 420px;
  }

  .contact-list {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    align-items: center;
  }

  /* Tables */
  .temperature-table th,
  .temperature-table td {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Typography */
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-subtitle {
    font-size: 1.6rem;
  }

  .form-title {
    font-size: 1.125rem;
  }

  .form-label {
    font-size: 0.8125rem;
  }

  .form-info-title {
    font-size: 2.2rem;
  }

  .form-info-text {
    font-size: 1.6rem;
  }

  /* Forms */
  .offer-form {
    padding: 25px;
    gap: 20px;
  }

  .form-fields {
    gap: 15px;
  }

  .form-input,
  .phone-input-container {
    height: 45px;
    font-size: 0.875rem;
  }

  .phone-input-container .phone-number {
    font-size: 0.875rem;
  }

  /* Contact */
  .contact-wrapper {
    gap: 30px;
  }

  .contact-form-wrapper {
    min-height: 550px;
  }

  .form-info {
    min-height: 150px;
    gap: 20px;
  }

  .form-content {
    min-height: 400px;
  }

  .form-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .contact-list {
    font-size: 0.8rem;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* Typography */
  .contact-title {
    font-size: 1.5rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .form-title {
    font-size: 1rem;
  }

  .form-label {
    font-size: 0.75rem;
  }

  .form-info-title {
    font-size: 1.25rem;
  }

  .form-info-text {
    font-size: 0.8rem;
  }

  /* Forms */
  .offer-form {
    padding: 20px;
    gap: 15px;
  }

  .form-fields {
    gap: 12px;
  }

  .form-input,
  .form-select,
  .phone-input-container {
    height: 42px;
  }

  .form-input,
  .form-select {
    font-size: 0.8125rem;
    padding: 0 12px;
  }

  .form-textarea {
    height: 70px;
    font-size: 0.9rem;
  }

  .form-submit {
    height: 50px;
    font-size: 0.9rem;
  }

  /* Phone input */
  .phone-input-container .country-code-mobile-trigger {
    padding: 0 10px;
  }

  .phone-input-container .country-code-mobile-trigger .selected-flag {
    font-size: 1rem;
  }

  .phone-input_container .country-code-mobile-trigger .selected-code {
    font-size: 0.75rem;
  }

  .phone-input-container .phone-number {
    padding: 0 10px;
    font-size: 0.875rem;
  }

  /* Contact */
  .contact-wrapper {
    gap: 25px;
  }

  .contact-form-wrapper {
    min-height: 500px;
  }

  .form-info {
    min-height: 120px;
    gap: 15px;
  }

  .form-content {
    min-height: 380px;
  }

  .form-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .contact-list {
    font-size: 0.8rem;
    gap: 10px;
  }
}
