/*-----------------------------------------------------------------------------------
    Selberry - Contact us page (linked from contact-us.blade.php only)
    1. Contact form: white card with the telephone photo on the left and the form on the
       right, on a green band (user's reference: red telephone card on an orange background).
       The form fields reuse the inquiry form styles from sections.css (.sb-inq2-*, .sb-code).
    2. Contact details: "Say hello to us!" text on the left, map with a pulsing location
       on the right (user's reference: details over a pale map).
    Colours follow the Selberry logo gradient: #63A04A (leaf) > #2E7D44 (mid) > #076342 (deep).
-----------------------------------------------------------------------------------*/

/*---------------- 1. Contact form ----------------*/
.sb-ct-form {
    /* background: linear-gradient(135deg, #63A04A 0%, #2E7D44 45%, #076342 100%); */
    background: #F1F7EC;
}
.sb-ct-card {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    border-radius: 28px;
    background-color: #ffffff;
    box-shadow: 0 40px 80px rgba(4, 31, 21, 0.35);
    padding: 50px;
    overflow: hidden;
}
.sb-ct-photo {
    padding: 0 50px 0 0;
}
.sb-ct-photo img {
    display: block;
    width: 100%;
    max-width: 400px;
    max-height: 600px;
    object-fit: contain;
    object-position: center bottom;
}
.sb-ct-card .sb-ct-box {
    flex: none;
    padding: 0;
}
.sb-ct-box .section-title .sub-title {
    color: #2E7D44;
}
.sb-ct-box .section-title h2 {
    font-size: 44px;
}
.sb-ct-box .lead {
    margin: 10px 0 30px;
    color: #5b6e64;
    font-size: 16px;
}
.sb-ct-box .sb-inq2-actions {
    justify-content: space-between;
}

/*---------------- 2. Contact details ----------------*/
.sb-ct-info {
    background-color: #ffffff;
}
.sb-ct-map-card {
    position: relative;
    min-height: 620px;
    border-radius: 28px;
    background-color: #f3f3f3;
    /* box-shadow: 0 25px 60px rgba(6, 40, 27, 0.1); */
    overflow: hidden;
}
.sb-ct-map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    overflow: hidden;
}
/* the iframe starts 200px above the box, so Google's place card (top left of the embed) is
   cut off; the pin, in the middle of the iframe, then sits 100px above the middle of the box */
.sb-ct-map iframe {
    display: block;
    width: 100%;
    height: calc(100% + 200px);
    margin-top: -200px;
    border: 0;
    filter: grayscale(1) contrast(0.9) brightness(1.08);
}
/* the map fades into the text side and gets a light green tint (the reference is pale blue) */
.sb-ct-map::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 35%;
    background: linear-gradient(90deg, #f3f3f3 0%, rgb(243 243 243 / 52%) 100%);
    pointer-events: none;
}
.sb-ct-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(249 249 249);
    mix-blend-mode: multiply;
    pointer-events: none;
}
/* rings round the map pin (the embedded map keeps the address in its centre) */
.sb-ct-ping {
    position: absolute;
    top: calc(50% - 100px);
    left: 50%;
    z-index: 2;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    border-radius: 50%;
    background-color: rgba(46, 125, 68, 0.14);
    pointer-events: none;
}
.sb-ct-ping::before {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background-color: rgba(46, 125, 68, 0.2);
}
.sb-ct-ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(46, 125, 68, 0.5);
    border-radius: 50%;
    animation: sb-ct-pulse 2.4s ease-out infinite;
}
@keyframes sb-ct-pulse {
    0% {
        opacity: 1;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}
.sb-ct-body {
    position: relative;
    z-index: 3;
    width: 48%;
    padding: 64px 0 56px 60px;
}
.sb-ct-body .section-title .sub-title {
    color: #2E7D44;
}
.sb-ct-body .section-title h2 {
    font-size: 56px;
}

.sb-ct-lead {
    margin: 16px 0 34px;
    color: #0B3A28;
    font-size: 17px;
    line-height: 1.7;
}
@media only screen and (max-width: 1599px) {
    .sb-ct-body .section-title h2 {
        font-size: 45px;
    }
    .sb-ct-lead {
        font-size: 16px;
    }
}
/* phone column only as wide as the numbers, so the long e-mail addresses fit on one line */
.sb-ct-items {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px 40px;
}
.sb-ct-item.full {
    grid-column: 1 / -1;
}
.sb-ct-item .lbl {
    display: block;
    margin-bottom: 6px;
    color: #63A04A;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sb-ct-item p {
    margin: 0;
    color: #0B3A28;
    font-size: 16px;
    line-height: 1.7;
}
.sb-ct-item a {
    display: block;
    color: #0B3A28;
    overflow-wrap: anywhere;
}
.sb-ct-item a:hover {
    color: #2E7D44;
}
.sb-ct-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}
.sb-ct-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 30px;
    background: var(--sb-grad); /* the footer gradient */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(7, 99, 66, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sb-ct-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7, 99, 66, 0.4);
}
.sb-ct-copy.is-done {
    background: var(--sb-grad-light);
    color: #0B3A28;
}
.sb-ct-social {
    display: flex;
    gap: 10px;
}
.sb-ct-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2E7D44;
    box-shadow: 0 8px 18px rgba(6, 40, 27, 0.12);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.sb-ct-social a:hover {
    background: var(--sb-grad);
    color: #ffffff;
}
@media (prefers-reduced-motion: reduce) {
    .sb-ct-ping::after {
        animation: none;
    }
}

/*---------------- Smaller screens ----------------*/
@media (max-width: 1199px) {
    .sb-ct-body {
        width: 52%;
        padding-left: 44px;
    }
    .sb-ct-body .section-title h2 {
        font-size: 46px;
    }
    .sb-ct-card .sb-ct-box {
        padding: 50px 44px 46px 16px;
    }
}
/* below 992px: photo above the form; details text above the map */
@media (max-width: 991px) {
    .sb-ct-card {
        grid-template-columns: minmax(0, 1fr);
        padding: 15px;
    }
    .sb-ct-photo {
        padding: 0;
    }
    .sb-ct-photo img {
        max-width: 200px;
        max-height: 260px;
    }
    .sb-ct-card .sb-ct-box {
        padding: 30px 0px;
    }
    .sb-ct-map-card {
        display: flex;
        flex-direction: column-reverse;
        min-height: 0;
    }
    .sb-ct-map {
        position: relative;
        width: 100%;
        height: 420px;
    }
    .sb-ct-map::before {
        right: 0;
        bottom: auto;
        width: auto;
        height: 30%;
        background: linear-gradient(180deg, #f3f3f3 0%, rgb(237 237 237 / 0%) 100%);
    }
    .sb-ct-body {
        width: 100%;
        padding: 44px 30px 20px;
    }
}
@media (max-width: 575px) {
    .sb-ct-photo img {
        max-width: 160px;
        max-height: 220px;
    }
    .sb-ct-card .sb-ct-box {
        padding: 24px 20px 32px;
    }
    .sb-ct-box .section-title h2 {
        font-size: 34px;
    }
    .sb-ct-box .sb-inq2-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .sb-ct-box .sb-inq2-btn {
        justify-content: center;
    }
    .sb-ct-body {
        padding: 34px 20px 14px;
    }
    .sb-ct-body .section-title h2 {
        font-size: 38px;
    }
    .sb-ct-items {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .sb-ct-foot {
        margin-top: 30px;
    }
    .sb-ct-map {
        height: 400px;
    }
    .sb-ct-ping {
        width: 100px;
        height: 100px;
        margin: -50px 0 0 -50px;
    }
    .sb-ct-ping::before {
        inset: 24px;
    }
}
