/* ============================================================
   Isabel Call to Action Widget
   ============================================================ */

/* ── show/hide helpers ── */
.isabel-mobile-only  { display: none !important; }
.isabel-desktop-only { display: flex; }

/* ── Outer wrapper ── */
.isabel-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px;
    background: #f0f2f4;
    padding: 50px 80px;
    border-radius: 0;
    overflow: visible;
    min-height: 280px;
}

/* ============================================================
   LEFT: Polaroid stack (desktop)
============================================================ */
.isabel-cta-images {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px 20px 20px;
}

.isabel-polaroid-stack {
    position: relative;
    width: 200px;
    height: 280px;
    flex-shrink: 0;
}

.isabel-polaroid {
    position: absolute;
    background: #fff;
    padding: 10px 10px 44px;
    box-shadow: 3px 6px 22px rgba(0,0,0,0.22);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}

.isabel-polaroid img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 1px;
    pointer-events: none;
}

.isabel-polaroid-back-left {
    width: 168px; top: 0; left: -45px;
    transform: rotate(-18deg);
    transform-origin: bottom center;
    z-index: 1;
}
.isabel-polaroid-back-left img { height: 130px; }

.isabel-polaroid-back-right {
    width: 168px; top: 0; right: -45px;
    transform: rotate(16deg);
    transform-origin: bottom center;
    z-index: 1;
}
.isabel-polaroid-back-right img { height: 130px; }

.isabel-polaroid-front {
    width: 200px; bottom: 0; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    transform-origin: bottom center;
    z-index: 2;
}
.isabel-polaroid-front img { height: 210px; }

.isabel-polaroid-front:hover {
    animation: isabel-shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}
.isabel-polaroid-stack:hover .isabel-polaroid-back-left  { transform: rotate(-22deg) translateY(-10px); }
.isabel-polaroid-stack:hover .isabel-polaroid-back-right { transform: rotate(20deg) translateY(-10px); }

.isabel-polaroid-caption {
    display: flex; flex-direction: column;
    align-items: center; padding-top: 7px; gap: 2px;
}
.isabel-caption-name {
    font-family: 'Caveat','Dancing Script',cursive,sans-serif;
    font-size: 18px; font-weight: 700; color: #222;
    letter-spacing: 0.2px; line-height: 1.2;
}
.isabel-caption-team {
    font-family: 'Caveat','Dancing Script',cursive,sans-serif;
    font-size: 12px; font-weight: 600; color: #333;
    text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.2;
}

@keyframes isabel-shake {
    0%   { transform: translateX(-50%) rotate(-3deg); }
    15%  { transform: translateX(-50%) rotate(5deg) translateY(-5px); }
    30%  { transform: translateX(-50%) rotate(-7deg) translateY(-8px); }
    45%  { transform: translateX(-50%) rotate(4deg) translateY(-4px); }
    60%  { transform: translateX(-50%) rotate(-3deg) translateY(-2px); }
    75%  { transform: translateX(-50%) rotate(2deg); }
    90%  { transform: translateX(-50%) rotate(-1deg); }
    100% { transform: translateX(-50%) rotate(-3deg); }
}

/* ============================================================
   RIGHT: Content
   Desktop order: heading(1) → subtext(2) → btn(3) → phone(4)
============================================================ */
.isabel-cta-content {
    flex: 0 0 auto;
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* Desktop explicit order */
.isabel-cta-heading        { order: 1; }
.isabel-cta-subtext        { order: 2; }
.isabel-cta-btn            { order: 3; }
.isabel-cta-phone          { order: 4; }
.isabel-mobile-circle-wrap { order: 5; }

.isabel-cta-heading {
    font-size: 26px; font-weight: 700;
    color: #2d8c8c; margin: 0; line-height: 1.3;
}
.isabel-cta-subtext {
    font-size: 15px; color: #555;
    margin: 0; line-height: 1.7; max-width: 360px;
}

/* ── Button ── */
.isabel-cta-btn {
    display: inline-block;
    background: #2d8c8c;
    color: #fff !important;
    font-size: 15px; font-weight: 700;
    padding: 16px 0; border-radius: 8px;
    text-decoration: none !important;
    letter-spacing: 0.3px; cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(45,140,140,0.20);
    width: 100%; max-width: 360px; text-align: center;
}
.isabel-cta-btn:hover {
    background: #236f6f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,140,140,0.30);
}

/* ── Phone row ── */
.isabel-cta-phone { display: flex; align-items: center; justify-content: center; }
.isabel-cta-phone a {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none !important; color: #222;
    font-size: 16px; font-weight: 600; transition: color 0.2s;
}
.isabel-cta-phone a:hover { color: #2d8c8c; }
.isabel-phone-icon {
    display: flex; align-items: center;
    color: #25d366; flex-shrink: 0; transition: transform 0.2s;
}
.isabel-cta-phone a:hover .isabel-phone-icon { transform: scale(1.12); }
.isabel-phone-text { line-height: 1; }

/* ============================================================
   MOBILE: Circular image block
============================================================ */
.isabel-mobile-circle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* THE FIX: overflow:hidden clips the image into a circle */
.isabel-mobile-circle {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.isabel-mobile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.isabel-mobile-caption {
    position: absolute;
    bottom: 14px;
    right: -6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    pointer-events: none;
    z-index: 2;
}

.isabel-mobile-caption-name {
    font-family: 'Caveat','Dancing Script',cursive,sans-serif;
    font-size: 18px; font-weight: 700; color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    line-height: 1.1; letter-spacing: 0.2px;
}
.isabel-mobile-caption-team {
    font-family: 'Caveat','Dancing Script',cursive,sans-serif;
    font-size: 13px; font-weight: 600; color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    text-transform: uppercase; letter-spacing: 1.2px; line-height: 1.1;
}

/* ============================================================
   WPForms Popup Modal
============================================================ */
.isabel-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 999999;
    align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.isabel-modal-overlay.isabel-modal-open {
    display: flex; animation: isabel-overlay-in 0.22s ease;
}
@keyframes isabel-overlay-in { from { opacity:0; } to { opacity:1; } }

body.isabel-modal-active { overflow: hidden; }

.isabel-modal-box {
    position: relative; background: #fff;
    border-radius: 16px; padding: 40px 40px 36px;
    width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    animation: isabel-modal-in 0.28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes isabel-modal-in {
    from { opacity:0; transform: translateY(24px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
.isabel-modal-box::-webkit-scrollbar { width: 4px; }
.isabel-modal-box::-webkit-scrollbar-track { background: #f5f5f5; }
.isabel-modal-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.isabel-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: #f5f5f5; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #555; transition: background 0.2s, color 0.2s; padding: 0;
}
.isabel-modal-close:hover { background: #e0e0e0; color: #111; }

.isabel-modal-title {
    font-size: 22px; font-weight: 700; color: #2d8c8c;
    margin: 0 0 24px; padding-right: 40px; line-height: 1.3;
}

.isabel-modal-form { width: 100%; }
.isabel-modal-form .wpforms-container { margin: 0 !important; padding: 0 !important; }
.isabel-modal-form .wpforms-form .wpforms-field { margin-bottom: 18px !important; }
.isabel-modal-form .wpforms-form input[type="text"],
.isabel-modal-form .wpforms-form input[type="email"],
.isabel-modal-form .wpforms-form input[type="tel"],
.isabel-modal-form .wpforms-form textarea,
.isabel-modal-form .wpforms-form select {
    width: 100% !important; border: 1px solid #ddd !important;
    border-radius: 8px !important; padding: 12px 14px !important;
    font-size: 14px !important; transition: border-color 0.2s !important;
    box-sizing: border-box !important;
}
.isabel-modal-form .wpforms-form input:focus,
.isabel-modal-form .wpforms-form textarea:focus {
    border-color: #2d8c8c !important; outline: none !important;
    box-shadow: 0 0 0 3px rgba(45,140,140,0.12) !important;
}
.isabel-modal-form .wpforms-form .wpforms-submit-container { text-align: center; margin-top: 8px; }
.isabel-modal-form .wpforms-form button[type="submit"],
.isabel-modal-form .wpforms-form input[type="submit"] {
    background: #2d8c8c !important; color: #fff !important;
    border: none !important; border-radius: 8px !important;
    padding: 14px 40px !important; font-size: 15px !important;
    font-weight: 700 !important; cursor: pointer !important;
    transition: background 0.25s !important; width: 100% !important;
}
.isabel-modal-form .wpforms-form button[type="submit"]:hover,
.isabel-modal-form .wpforms-form input[type="submit"]:hover { background: #236f6f !important; }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
    .isabel-cta-wrap    { padding: 50px 40px; gap: 40px; }
    .isabel-cta-content { width: 360px; }
}

/* ── Mobile: single-column circular layout ── */
@media (max-width: 768px) {

    .isabel-mobile-only  { display: flex !important; }
    .isabel-desktop-only { display: none !important; }

    .isabel-cta-wrap {
        flex-direction: column;
        align-items: center;
        padding: 36px 24px 40px;
        gap: 22px;
        min-height: unset;
    }

    .isabel-cta-content {
        width: 100%;
        max-width: 360px;
        gap: 18px;
    }

    /* Mobile order: heading → subtext → circle → phone → button */
    .isabel-cta-heading        { order: 1; font-size: 22px; }
    .isabel-cta-subtext        { order: 2; font-size: 14px; max-width: 100%; }
    .isabel-mobile-circle-wrap { order: 3; margin: 6px 0; }
    .isabel-cta-phone          { order: 4; }
    .isabel-cta-btn            { order: 5; padding: 15px 0; max-width: 100%; border-radius: 10px; }
}

@media (max-width: 600px) {
    .isabel-modal-box   { padding: 32px 20px 28px; border-radius: 12px; }
    .isabel-modal-title { font-size: 18px; }
}

@media (max-width: 400px) {
    .isabel-mobile-circle,
    .isabel-mobile-circle img { width: 170px; height: 170px; }
}
