/* =========================================================
   Contact Page - Real Estate Sardinia
   File: /assets/css/re_contact.css
   Scope: .re-contact
   ========================================================= */

.re-contact {
    background: rgba(255, 255, 255, 0.6);
    padding: 72px 18px 96px;
    color: #111315;
}

.re-contact__container {
    max-width: 1120px;
    margin: 0 auto;
}

/* ---------------------------------
   Header
---------------------------------- */
.re-contact__header {
    text-align: center;
    margin: 0 0 44px;
}

.re-contact__header h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.2vw, 64px);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.re-contact__subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    opacity: 0.78;
}

/* ---------------------------------
   Top grid
---------------------------------- */
.re-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    margin-bottom: 44px;
}

.re-contact__box {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.re-contact__box h3,
.re-contact__map h3,
.re-contact__form h3 {
    margin: 0 0 20px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.re-contact__box p {
    margin: 0 0 14px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.92;
}

.re-contact__box strong {
    font-weight: 700;
    color: #111315;
}

/* ---------------------------------
   Map
---------------------------------- */
.re-contact__map {
    margin: 0 0 52px;
}

.re-contact__map>div {
    overflow: hidden;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.re-contact__map iframe {
    display: block;
    width: 100% !important;
    min-height: 430px;
    border: 0;
}

.re-contact__map a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0b3b35;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 59, 53, 0.3);
    padding-bottom: 2px;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.re-contact__map a:hover {
    opacity: 0.75;
    border-color: #0b3b35;
}

/* ---------------------------------
   Form
---------------------------------- */
.re-contact__form {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 10px;
}

.re-contact__form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.re-contact__form input,
.re-contact__form textarea {
    width: 100%;
    border: 1px solid rgba(17, 19, 21, 0.12);
    background: transparent;
    color: #111315;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    padding: 16px 18px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.re-contact__form input::placeholder,
.re-contact__form textarea::placeholder {
    color: rgba(17, 19, 21, 0.48);
}

.re-contact__form input:focus,
.re-contact__form textarea:focus {
    border-color: rgba(11, 59, 53, 0.55);
    background: rgba(255, 255, 255, 0.5);
}

.re-contact__form textarea {
    min-height: 180px;
    resize: vertical;
}

.re-contact__privacy {
    margin: -2px 0 2px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.65;
}

.re-contact__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 176px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 0;
    background: #0b3b35;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.re-contact__form button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.re-contact__form button:disabled {
    opacity: 1;
    cursor: wait;
    transform: none;
}


.re-contact__formMessage {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;

    opacity: 0;
    transform: translateY(6px);
    animation: reContactFadeIn 0.3s ease forwards;
}

@keyframes reContactFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------
   Final CTA
---------------------------------- */
.re-contact__cta {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
}

.re-contact__cta p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.45;
    font-weight: 400;
    opacity: 0.88;
}


/* ---------------------------------
   HERO
---------------------------------- */

.re-contact__hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 40px;
}

.re-contact__heroOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 40px;
}

.re-contact__heroContent {
    position: relative;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.re-contact__heroContent h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 68px);
    margin-bottom: 12px;
    color: #fff;
}

.re-contact__heroContent p {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

/* ---------------------------------
   Info list with icons
---------------------------------- */
.re-contact__infoList {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.re-contact__infoItem {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 19, 21, 0.08);
}

.re-contact__infoIcon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b3b35;
    flex-shrink: 0;
}

.re-contact__infoIcon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}

.re-contact__infoContent {
    min-width: 0;
}

.re-contact__infoLabel {
    display: block;
    margin: 0 0 4px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(17, 19, 21, 0.6);
}

.re-contact__infoContent p {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #111315;
    opacity: 0.92;
    word-break: break-word;
}

.re-contact__note {
    margin-top: 4px;
    padding: 18px 20px;
    background: rgba(11, 59, 53, 0.04);
    border-left: 2px solid rgba(11, 59, 53, 0.35);
}

.re-contact__note p {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #111315;
    opacity: 0.82;
}

.re-contact__formMessage {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.re-contact__formMessage--success {
    background: rgba(28, 126, 84, 0.08);
    color: #1c7e54;
    border-color: rgba(28, 126, 84, 0.18);
}

.re-contact__formMessage--error {
    background: rgba(176, 42, 42, 0.08);
    color: #b02a2a;
    border-color: rgba(176, 42, 42, 0.18);
}

@media (max-width: 640px) {
    .re-contact__infoItem {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .re-contact__infoIcon {
        width: 36px;
        height: 36px;
    }

    .re-contact__infoIcon svg {
        width: 20px;
        height: 20px;
    }
}

/* ---------------------------------
   Spacing refinements
---------------------------------- */
.re-contact__box p:last-child,
.re-contact__cta p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------
   Responsive
---------------------------------- */
@media (max-width: 980px) {
    .re-contact {
        padding: 56px 18px 76px;
    }

    .re-contact__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 38px;
    }

    .re-contact__map {
        margin-bottom: 40px;
        border-radius: 40px;
    }

    .re-contact__map iframe {
        min-height: 340px;
        border-radius: 40px;
    }

    .re-contact__form {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .re-contact__header {
        margin-bottom: 34px;
    }

    .re-contact__form input,
    .re-contact__form textarea {
        padding: 14px 15px;
    }

    .re-contact__form button {
        width: 100%;
        min-width: 0;
    }

    .re-contact__map iframe {
        min-height: 280px;
    }
}