/* =========================
   LAYOUT GENERAL
   ========================= */

.account-main {
    padding: 0 !important;
}

.tg-page {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #1f1f1f;
}


/* =========================
   HERO
   ========================= */

.tg-hero {
    position: relative;
    height: 420px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.tg-hero__image {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-terrenys.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.1) contrast(1.05);
}

.tg-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    max-width: 720px;
}

.tg-hero__content h1 {
    margin: 0;
    max-width: 680px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.tg-btn {
    display: inline-block;
    width: fit-content;
    margin-top: 24px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #d6cbb8;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tg-btn:hover {
    background: #cbbfa9;
    color: #1a1a1a;
    text-decoration: none;
}


/* =========================
   BLOC CENTRAL
   ========================= */

.tg-content {
    padding: 56px 60px 0;
    text-align: center;
}

.tg-content__inner {
    max-width: 1500px;
    margin: 0 auto;
}

.tg-content__inner h2 {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.4px;
}

.tg-content__subtitle {
    max-width: 820px;
    margin: 0 auto 34px;
    color: #6b6b6b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.tg-content__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;
}

.tg-content__images img {
    display: block;
    width: 100%;
    height: 280px;
    border-radius: 14px;
    object-fit: cover;
}

.tg-content__cta {
    margin-top: 34px;
    padding: 22px 28px;
    border-radius: 12px;
    background: #d6cbb8;
    color: #2b2b2b;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}


/* =========================
   FORMULARI
   ========================= */

.tg-form {
    padding: 58px 60px 70px;
}

.tg-form__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
}

.tg-form__left h2 {
    max-width: 520px;
    margin: 0;
    color: #1f1f1f;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.4px;
}

.tg-form__right {
    width: 100%;
    padding-right: 20px;
}


/* =========================
   FORMULARI: ESTRUCTURA
   ========================= */

.tg-form .contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
}

.tg-form .contact-form__row {
    gap: 18px !important;
    margin-bottom: 10px !important;
}

.tg-form .contact-form__row>.contact-field {
    width: 100%;
}

.tg-form .contact-field {
    gap: 2px !important;
}

.tg-form .contact-field--full {
    margin-bottom: 10px !important;
}

.tg-form .contact-captcha {
    margin-bottom: 10px !important;
}


/* =========================
   FORMULARI: LABELS
   ========================= */

.tg-form .contact-field label {
    display: block;
    margin: 0 0 2px !important;
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 500;
}


/* =========================
   FORMULARI: INPUTS
   ========================= */

.tg-form .contact-field input[type="text"],
.tg-form .contact-field input[type="email"],
.tg-form .contact-field input[type="tel"],
.tg-form .contact-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1.5px solid #bdbdbd;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.tg-form .contact-field textarea {
    min-height: 150px;
    border-radius: 12px;
    resize: vertical;
}

.tg-form .contact-field input[type="text"]:focus,
.tg-form .contact-field input[type="email"]:focus,
.tg-form .contact-field input[type="tel"]:focus,
.tg-form .contact-field textarea:focus {
    outline: none;
    border-color: #8a674d;
    box-shadow: 0 0 0 2px rgba(138, 103, 77, 0.14);
}


/* =========================
   FORMULARI: BOTÓ
   ========================= */

.tg-form .contact-form__btn {
    display: inline-block;
    width: 260px;
    min-width: 0;
    margin-top: 20px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: #8a674d;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.tg-form .contact-form__btn:hover {
    background: #755740;
}


/* =========================
   FORMULARI: CHECKBOX
   ========================= */

.tg-form .contact-form__check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #5a5a5a;
    font-size: 14px;
    line-height: 1.4;
}

.tg-form .contact-form__check input {
    width: 16px;
    height: 16px;
    margin: 0;
}


/* =========================
   FORMULARI: MISSATGES
   ========================= */

.tg-form .contact-error {
    margin-top: 6px;
    color: #a12626;
    font-size: 13px;
}

.tg-form .contact-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.tg-form .contact-message--success {
    background: #e9f6e9;
    color: #246b2a;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {

    .tg-content,
    .tg-form {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tg-form__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tg-form__left h2 {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .tg-hero {
        height: 320px;
    }

    .tg-hero__content {
        max-width: 100%;
        padding: 34px 26px;
    }

    .tg-hero__content h1 {
        max-width: 100%;
        font-size: 32px;
    }

    .tg-content {
        padding: 38px 20px 0;
    }

    .tg-content__inner h2 {
        font-size: 26px;
    }

    .tg-content__images {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tg-content__images img {
        height: 220px;
    }

    .tg-content__cta {
        padding: 18px 20px;
        font-size: 18px;
    }

    .tg-form {
        padding: 40px 20px 50px;
    }

    .tg-form__left h2 {
        font-size: 28px;
    }

    .tg-form .contact-form__row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tg-form .contact-form__btn {
        width: 100%;
    }
}