/* Блок над списком теплиц: форма «Хотите скидку?» + баннер акции
   (resources/views/components/discount-form.blade.php) */
.discount-hero {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 20px;
    margin: 25px 20px;
    align-items: stretch;
}
.discount-hero__banner {
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #ececea;
}
.discount-hero__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- форма ---------- */
.discount-form {
    --df-orange-1: #ffaa1c;
    --df-orange-2: #ff7300;
    position: relative;
    overflow: hidden;
    padding: 30px 30px 26px;
    border-radius: 24px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(110, 200, 60, .55) 0%, rgba(110, 200, 60, 0) 55%),
        linear-gradient(160deg, #1d5a22 0%, #2d7a2b 55%, #3f9a33 100%);
    color: #fff;
    font-family: Arial, 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
}
/* декоративные дуги справа сверху */
.discount-form::before,
.discount-form::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 26px solid rgba(214, 206, 58, .28);
    pointer-events: none;
}
.discount-form::before { width: 330px; height: 330px; right: -190px; top: -40px; }
.discount-form::after  { width: 220px; height: 220px; right: -150px; top: 30px; border-color: rgba(214, 206, 58, .22); }
.discount-form > * { position: relative; z-index: 1; }

.discount-form__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 18px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--df-orange-1), var(--df-orange-2));
    box-shadow: 0 4px 14px rgba(255, 115, 0, .35);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.discount-form .discount-form__title {
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.5px;
}
.discount-form__title span {
    background: linear-gradient(90deg, var(--df-orange-1), var(--df-orange-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.discount-form__lead {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .95);
}

.discount-form__field {
    position: relative;
    display: block;
    margin: 0 0 12px;
}
.discount-form__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.discount-form__phone-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9bdb8;
    pointer-events: none;
}
.discount-form__input {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    padding: 0 22px 0 58px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: #fff;
    color: #2f3a30;
    font-size: 19px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    outline: none;
    transition: border-color .15s;
}
.discount-form__input::placeholder { color: #a8ada7; }
.discount-form__input:focus { border-color: var(--df-orange-1); }
.discount-form__input.is-invalid { border-color: #ff5a4a; }

.discount-form__btn {
    display: block;
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--df-orange-1), var(--df-orange-2));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(255, 115, 0, .4);
    transition: filter .15s, transform .15s;
}
.discount-form__btn:hover { filter: brightness(1.06); }
.discount-form__btn:active { transform: translateY(1px); }
.discount-form__btn[disabled] { opacity: .75; cursor: default; }
.discount-form__btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }

.discount-form__agree {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 2px 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .95);
    cursor: pointer;
}
.discount-form__agree input {
    position: absolute;
    opacity: 0;
    width: 22px; height: 22px;
    margin: 0;
}
.discount-form__box {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 0 0 2px transparent;
    transition: background .15s;
}
.discount-form__agree input:checked + .discount-form__box {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ff7a00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.discount-form__agree input:focus-visible + .discount-form__box { box-shadow: 0 0 0 3px rgba(255, 170, 28, .7); }
.discount-form__agree.is-invalid .discount-form__box { box-shadow: inset 0 0 0 2px #ff5a4a; }
.discount-form__agree a { color: #fff; text-decoration: underline; }

.discount-form__error { margin: 10px 2px 0; font-size: 13px; color: #ffd6cf; }

.discount-form__done {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 6px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
}
.discount-form__done[hidden], .discount-form__form[hidden], .discount-form__error[hidden] { display: none; }
.discount-form__done-icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #2d7a2b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discount-form__done-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.discount-form__done-text { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .92); }

/* ---------- планшет и телефон: форма, под ней баннер целиком ---------- */
@media (max-width: 960px) {
    .discount-hero { grid-template-columns: 1fr; }
    .discount-hero__banner { min-height: 0; border-radius: 18px; }
    .discount-hero__banner img { height: auto; object-fit: contain; }
}
@media (max-width: 600px) {
    .discount-hero { margin: 16px 0; gap: 14px; }
    .discount-form { padding: 24px 18px 20px; border-radius: 20px; }
    .discount-form .discount-form__title { font-size: 36px; }
    .discount-form__lead { font-size: 15px; }
    .discount-form__input, .discount-form__btn { height: 54px; }
    .discount-form__btn { font-size: 18px; }
}
