/**
 * Jibril Immo — contact & owner forms, contact modal.
 * Scoped to .jcp (contact page), .jof (owner page), .jf (Contact Form 7 templates)
 * and .MessageModal. Loaded on every page because the modal is global.
 */
:root {
    --jf-green: #258136;
    --jf-green-dark: #1d6a2c;
    --jf-mint: #e8f2ea;
    --jf-ink: #222;
    --jf-muted: #5f6b63;
    --jf-line: #d5ddd7;
    --jf-paper: #fff;
    --jf-radius: 14px;
    --jf-field-radius: 10px;
}

/* 0. Zoom lock (pinch and double-tap), requested by the client */
html { touch-action: pan-x pan-y; }
a, button, input, select, textarea, label { touch-action: manipulation; }

/* 1. Contact page layout --------------------------------------------------- */
.jcp { padding: 72px 24px 112px; }
.jcp-wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}
.jcp-info { position: sticky; top: 120px; padding-top: 8px; }
.jcp-title { margin: 0 0 12px; color: var(--jf-ink); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.jcp-lead { margin: 0 0 36px; color: var(--jf-muted); font-size: 16px; line-height: 1.65; }
.jcp-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.jcp-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--jf-line);
    border-radius: var(--jf-radius);
    background: var(--jf-paper);
}
.jcp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jf-mint);
    color: var(--jf-green);
}
.jcp-item-name { margin: 0 0 4px; color: var(--jf-ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.jcp-item-text { color: var(--jf-muted); font-size: 15px; font-style: normal; line-height: 1.65; overflow-wrap: anywhere; }
.jcp-item-text a { color: var(--jf-ink); text-decoration: underline; text-decoration-color: rgba(37, 129, 54, .35); text-underline-offset: 3px; }
.jcp-item-text a:hover { color: var(--jf-green); text-decoration-color: currentColor; }

.jcp-card {
    padding: 40px;
    border: 1px solid var(--jf-line);
    border-radius: 20px;
    background: var(--jf-paper);
    box-shadow: 0 30px 60px -40px rgba(18, 63, 44, .35);
}
.jcp-card-title { margin: 0 0 6px; color: var(--jf-ink); font-size: 24px; font-weight: 700; line-height: 1.25; }
.jcp-card-lead { margin: 0 0 28px; color: var(--jf-muted); font-size: 15px; line-height: 1.6; }

/* 2. Owner page layout ----------------------------------------------------- */
.jof { padding: 88px 24px 112px; }
.jof-wrap { max-width: 760px; margin: 0 auto; }
.jof-head { margin-bottom: 40px; text-align: center; }
.jof-title { margin: 0 0 12px; color: var(--jf-ink); font-size: clamp(28px, 4vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.jof-lead { max-width: 560px; margin: 0 auto; color: var(--jf-muted); font-size: 17px; line-height: 1.65; }

/* 3. Form (Contact Form 7 templates use .jf) -------------------------------- */
.jf { display: grid; gap: 20px; color: var(--jf-ink); }
.jf br { display: none; }
.jf p { margin: 0; }
.jf-grid { display: grid; gap: 20px; }
.jf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jf-field { display: grid; gap: 8px; min-width: 0; }
.jf-label { display: flex; align-items: baseline; gap: 6px; color: var(--jf-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.jf-req { color: var(--jf-green); }
.jf-opt { margin-left: auto; color: var(--jf-muted); font-size: 13px; font-weight: 400; }
.jf .jib-control-wrap { display: block; min-width: 0; }

.jf-input {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid var(--jf-line);
    border-radius: var(--jf-field-radius);
    background: var(--jf-paper);
    color: var(--jf-ink);
    font: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.jf-input::placeholder { color: #98a39b; }
.jf-input:hover { border-color: #b7c4ba; }
.jf-input:focus { outline: none; border-color: var(--jf-green); box-shadow: 0 0 0 4px rgba(37, 129, 54, .14); }
.jf-input.jib-form-not-valid { border-color: #c2410c; }
.jf-textarea { min-height: 150px; resize: vertical; }
.jf-select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f6b63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.jf-date { min-width: 0; text-align: left; }
.jf-date::-webkit-date-and-time-value { text-align: left; }

.jf-phone { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 10px; }
.jf-unit { position: relative; }
.jf-unit .jf-input { padding-right: 52px; }
.jf-unit-label { position: absolute; top: 0; right: 16px; display: flex; align-items: center; height: 52px; color: var(--jf-muted); font-size: 15px; pointer-events: none; }

/* Choice chips for CF7 radios */
.jf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.jf-chips .jib-form-list-item { margin: 0; }
.jf-chips label { position: relative; display: block; cursor: pointer; }
.jf-chips input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.jf-chips .jib-form-list-item-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--jf-line);
    border-radius: 999px;
    background: var(--jf-paper);
    color: var(--jf-ink);
    font-size: 15px;
    line-height: 1.2;
    transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.jf-chips label:hover .jib-form-list-item-label { border-color: var(--jf-green); }
.jf-chips input:checked + .jib-form-list-item-label { border-color: var(--jf-green); background: var(--jf-green); color: #fff; }
.jf-chips input:focus-visible + .jib-form-list-item-label { box-shadow: 0 0 0 4px rgba(37, 129, 54, .2); }

/* Sections of the owner form */
.jf-section { display: grid; gap: 20px; min-width: 0; margin: 0; padding: 0 0 28px; border: 0; border-bottom: 1px solid #e6ece7; }
.jf-section-title {
    float: left; /* lets the legend sit inside the grid flow */
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    color: var(--jf-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.jf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: var(--jf-green);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.jf-submit:hover { background: var(--jf-green-dark); }
.jf-submit:active { transform: translateY(1px); }
.jf-submit:focus-visible { outline: 2px solid var(--jf-green); outline-offset: 3px; }
.jf-note { color: var(--jf-muted); font-size: 13px; }
.jf .jib-form-spinner { margin: 0; }
.jf .jib-form-not-valid-tip { margin-top: 6px; color: #c2410c; font-size: 13px; }
.jcp-card .jib-form-response-output {
    margin: 20px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: var(--jf-field-radius);
    font-size: 14px;
}

/* 4. Contact modal ------------------------------------------------------------ */
.MessageModal .jib-modal-frame { min-height: 100%; padding: 24px 16px; }
.MessageModal .jib-modal-card { max-width: 420px; padding: 36px 24px 24px; }
.MessageModal .jib-modal-close { position: absolute; top: 12px; right: 12px; z-index: 10; }
.MessageModal .jib-modal-close button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}
.MessageModal .jib-modal-card li a { display: block; width: 100%; padding: 6px 0; text-align: center; }

/* 5. Responsive ---------------------------------------------------------------- */
@media (max-width: 960px) {
    .jcp-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .jcp-info { position: static; }
}
@media (max-width: 640px) {
    .jcp { padding: 40px 16px 72px; }
    .jof { padding: 56px 16px 72px; }
    .jcp-title { font-size: 26px; }
    .jcp-card { padding: 24px 20px; border-radius: 16px; }
    .jf-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .jf-phone { grid-template-columns: minmax(0, 1fr); }
    .jf-chips { gap: 8px; }
    .jf-chips .jib-form-list-item-label { padding: 10px 14px; font-size: 14px; }
    .jf-actions .jf-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .jf-input, .jf-submit, .jf-chips .jib-form-list-item-label { transition: none; }
}

/* 7. News cards: the photo always fills the whole 300px card */
.jib-news-img { flex: 1 0 100%; height: 100% !important; min-height: 100%; width: 100%; }
/* Native form primitives retained for the original spacing and request state. */
.jib-control-wrap{position:relative}.jib-form-list-item{display:inline-block;margin:0 0 0 1em}.jib-form-list-item-label::before,.jib-form-list-item-label::after{content:" "}.jib-form-spinner{visibility:hidden;display:inline-block;background:#23282d;opacity:.75;width:24px;height:24px;border:0;border-radius:100%;padding:0;margin:0 24px;position:relative}.jib-form-body.is-submitting .jib-form-spinner{visibility:visible}

.language-switcher{display:table;max-width:100%;border:1px solid transparent;border-bottom:0}.language-switcher>ul{position:relative;padding:0;margin:0!important;list-style-type:none}.language-switcher li{padding:0;margin:0;list-style-type:none}.language-switcher a{display:block;text-decoration:none;border-bottom:1px solid transparent;padding:5px 10px;line-height:1}.language-switcher a span,.language-switcher img{vertical-align:middle}.language-switcher img{display:inline}.language-switcher img+span{margin-left:.4em}
