/* hero.css */

@import url('settings.css');

.btn-1 {
  background-color: var(--neon-purple);
  border-radius: 8px;
  border-style: none;
  border-radius: 8px;
  box-sizing: border-box;
  color: var(--white);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: bold;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 300ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15)
}

.btn-1:hover,
.btn-1:focus {
  background-color: var(--bright-purple);
  color: var(--white);
  scale: 1.05;
  transition: all;
  --tw-duration: 300ms;
  transition-duration: 300ms;
}

.hero--selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    max-width: 800px;
    height: 86px;
    margin: min(1.75rem, 5%) auto;
    padding: min(1.5rem, 20%);
    text-align: center;
    background-color: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out both;
}

.hero--selector .option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    list-style: none;
}

.hero--selector .border-right {
    border-right: 1px solid rgba(93, 5, 115, 0.25);
}

.hero--selector .border-right.no-border {
    border-right: none;
}

.hero--selector .border-right.previous-no-border {
    border-right: none;
}

.hero--selector .option li,
.hero--selector .option a{
  width: 100%;
  height: 100%;
  color: var(--deep-purple);
  font-family: var(--font);
  font-size: clamp(0.55rem, 2.5vw, 1.125rem);
  font-weight: bold;
  line-height: 110%;
  transition: all;
  transition-duration: 500ms;
}

@media (max-width: 400px) {

}

.hero--selector .option li:hover,
.hero--selector .option a:hover {
  color: var(--neon-purple);
}

.hero--selector .option li button {
    all: unset;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 20px;
}

.hero--selector .option li .active {
    background-color: var(--neon-purple);
    color: var(--white);
}

/* Удалить или закомментировать глобальный padding для активных кнопок */
/*
.hero--selector .option li button.active,
.hero--selector .option li button:active,
.hero--selector .option li button:focus {
  padding: 0.6em 1.1em !important;
  transition: padding 0.2s cubic-bezier(0.4,0,0.2,1);
}
*/

.hero--info {
    background-color: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out both;
    padding: min(2rem, 7%)
}

.hero--phone {
    font-size: clamp(1rem, 7vw, 1.25rem);
    text-wrap: wrap;
}

.hero--phone a {
    text-decoration: dashed;
    font-weight: bold;
    color: var(--neon-purple);
    text-wrap: nowrap;
}

@media (max-width: 768px) {
    .hero--phone a {
        line-height: 2rem;
    }
}

/* --- Responsive Design Additions --- */

@media (max-width: 1024px) {
  .hero--selector {
    height: auto;
  }

  .hero--selector .option li{
    font-size: 1.75rem;
  }
  .hero--info {
    padding: 2.5rem;
    margin-top: 2rem;
  }
  
  .hero--selector .option li button.active,
  .hero--selector .option li button:active,
  .hero--selector .option li button:focus {
    transition: padding 0.2s cubic-bezier(0.4,0,0.2,1);
  }

  .hero--selector .option li button{
    padding: 0.15em 0em;
  }

  .hero--phone {
    font-size: 1.75rem;
  }

  .btn-1 {
    padding: 1.5rem 2.5rem;
    height: auto;
    font-size: 1.75rem;
    border-radius: 0.9rem;
  }
}

@media (max-width: 768px) {
  .hero--selector {
    grid-template-columns: 1fr;
    height: auto;
    padding: 1rem 1rem;
    gap: 0.5rem;
    max-width: 95vw;
  }
  .hero--selector .option {
    font-size: 1rem;
    padding: 0.5em 0;
    height: auto;
  }
  .hero--selector .option li button {
    padding: 0.5em 1em;
    height: auto;
    box-sizing: border-box;
  }
  .hero--selector .border-right {
    border: none;
  }
  .hero--info {
    padding: 2rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 560px) {
  .hero--selector {
    padding: 0.5rem 0.25rem;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .hero--selector .option li,
  .hero--selector .option a {
    font-size: 0.95rem;
  }
  .hero--selector .option li button {
    padding: 0.5em 1em;
    height: auto;
    box-sizing: border-box;
  }

  .hero--selector .border-right {
    border: none;
  }

  .hero--info {
    padding: 2rem;
    border-radius: 18px;
  }
}

@media (max-width: 400px) {
  .hero--selector {
    padding: 0.25rem 0.1rem;
    border-radius: 12px;
    gap: 0.25rem;
  }
  .hero--selector .option li,
  .hero--selector .option a {
    font-size: 0.85rem;
  }
  .hero--selector .option li button {
    padding: 0.5em 1em;
    height: auto;
    box-sizing: border-box;
  }
  .hero--info {
    padding: 2rem;
    border-radius: 12px;
  }

  .hero--selector .border-right {
    border: none;
  }

}

/* Responsive for form-section (if used in hero area) */
@media (max-width: 768px) {
  .form-section .form {
    padding: 2rem;
    max-width: 98vw;
  }
}
@media (max-width: 560px) {
  .form-section .form {
    padding: 2rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }
}

/* --- Responsive Consultation Form: Big Tech Style --- */
@media (max-width: 768px) {
  .modal form.space-y-6 {
    padding: 1.25rem 0.5rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 32px 0 rgba(43,30,74,0.10), 0 1.5px 8px 0 rgba(93,5,115,0.08);
    max-width: 98vw;
    margin: 0 auto;
  }
  .modal form.space-y-6 label {
    min-width: 0;
    font-size: 1rem;
    text-align: left;
    padding-left: 0.25rem;
  }
  .modal form.space-y-6 .flex.flex-col.mb-6.items-center {
    align-items: stretch;
    margin-bottom: 1.25rem;
  }
  .modal form.space-y-6 input,
  .modal form.space-y-6 textarea,
  .modal form.space-y-6 select {
    font-size: 1rem;
    border-radius: 0.75rem;
    padding: 0.85em 1em;
    background: #F7F6FB;
    border: 1.5px solid #E0D7F3;
    box-shadow: 0 1px 4px 0 rgba(93,5,115,0.04);
    color: #2B1E4A;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }
  .modal form.space-y-6 button[type="submit"] {
    font-size: 1.1rem;
    padding: 1em 0;
    border-radius: 0.85rem;
    box-shadow: 0 2px 8px 0 rgba(93,5,115,0.10);
    margin-top: 1.5rem;
  }
}
@media (max-width: 480px) {
  .modal form.space-y-6 label {
    font-size: 0.98rem;
    padding-left: 0.1rem;
  }
  .modal form.space-y-6 input,
  .modal form.space-y-6 textarea,
  .modal form.space-y-6 select {
    font-size: 0.98rem;
    border-radius: 0.55rem;
    padding: 0.7em 0.7em;
  }
  .modal form.space-y-6 button[type="submit"] {
    font-size: 1rem;
    padding: 0.85em 0;
    border-radius: 0.65rem;
  }
}