/* ============================================================
   propose.css
   Scoped to the Предложи парцел page.
   Prefix: .pp-  (propose-plot)
   No global rules — nothing leaks to other pages.
   ============================================================ */


/* ── Page hero ───────────────────────────────────────────────────────────── */
.pp-hero {
    padding-top: 120px;
    padding-bottom: 0;
    /*background: #f6f6f6;*/
}

.pp-hero__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-top: 60px;
}

/* Solid red gradient rectangle — same pattern as contact page hero */
.pp-hero__bar {
    width: 120px;
    height: 64px;
    background: var(--g-primary);
    flex-shrink: 0;
    margin-right: 32px;
}

.pp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 700;
    color: var(--c-text-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   FORM SECTION
   White background, form centered-left within container
   ══════════════════════════════════════════════════════════════════════════ */
.pp-form-section {
    background: #fff;
    padding: 72px 0 64px;
}

/* Form wrapper — constrained width, left-aligned in container */
.pp-form-wrap {
    max-width: 760px;
    width: 100%;
}

/* Accent bar */
.pp-form__accent {
    width: 48px;
    height: 5px;
    background: var(--g-primary);
    border-radius: 3px;
    margin-bottom: 20px;
}

.pp-form__heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--c-text-dark);
    margin: 0 0 14px;
    line-height: 1.15;
}

.pp-form__subtext {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #555;
    margin: 0 0 36px;
    line-height: 1.7;
}


/* ── Form layout ─────────────────────────────────────────────────────────── */
.pp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-form__row {
    display: flex;
    gap: 14px;
}

.pp-form__row--2col .pp-form__field {
    flex: 1;
}

.pp-form__field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Input / textarea */
.pp-form__input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--c-text-dark);
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

.pp-form__input::placeholder {
    color: #aaa;
}

.pp-form__input:focus {
    border-color: #C4161C;
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.08);
}

.pp-form__textarea {
    resize: vertical;
    min-height: 130px;
}

/* Checkboxes — appear BEFORE the submit button (matches Figma) */
.pp-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}

.pp-form__check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.pp-form__checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #C4161C;
}

.pp-form__check-text {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.pp-form__check-link {
    color: #C4161C;
    text-decoration: underline;
}

.pp-form__check-link:hover {
    opacity: 0.75;
}

/* Submit button — centered, fixed width (not full-width like contact page) */
.pp-form__submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.pp-form__submit {
    padding: 15px 56px;
    min-width: 280px;
    background: var(--g-primary);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
}

.pp-form__submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pp-form__submit:active {
    transform: translateY(0);
}

/* Feedback messages */
.pp-form__messages {
    margin-top: 12px;
}

.pp-form__message {
    font-family: var(--font-ui);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0;
}

.pp-form__message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.pp-form__message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}


/* ══════════════════════════════════════════════════════════════════════════
   ATMOSPHERIC SCENERY IMAGE
   Full-width photo strip below the form (plants + dark building scene)
   ══════════════════════════════════════════════════════════════════════════ */
.pp-scenery {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    height: 360px;
}

.pp-scenery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    position: relative;
    z-index: 1;
}

.pp-scenery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.60) 10%,
            rgba(0, 0, 0, 0.35) 25%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .pp-hero__bar {
        width: 80px;
        height: 48px;
        margin-right: 20px;
    }

    .pp-form-section {
        padding: 48px 0 48px;
    }

    .pp-form__row--2col {
        flex-direction: column;
        gap: 14px;
    }

    .pp-form__submit {
        min-width: 0;
        width: 100%;
        padding: 15px 24px;
    }

    .pp-scenery {
        position: relative;
        height: 240px;
        overflow: hidden;
    }

    .pp-scenery__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pp-scenery::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
                to top,
                rgba(0, 0, 0, 0.95) 0%,
                rgba(0, 0, 0, 0.7) 30%,
                rgba(0, 0, 0, 0.35) 55%,
                rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
        z-index: 2;
    }

    .pp-scenery__img {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .pp-hero__bar {
        width: 60px;
        height: 40px;
        margin-right: 16px;
    }

    .pp-form__heading {
        font-size: 26px;
    }
}