/* =============================================================================
   Zoomie Sync — Styles
   Covers: pet picker widget, signup form, zoomie list, popup.
   All interactive elements meet 48px minimum touch target (Google/Apple HIG).
   Inputs set to 16px minimum to prevent iOS auto-zoom.
   ============================================================================= */

/* =============================================================================
   PET PREFERENCE PICKER  [zoomie_pet_picker]
   ============================================================================= */

.zpick {
    max-width: 560px;
    margin: 0 auto 32px;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.zpick__question {
    font-size: 20px;
    font-weight: 800;
    color: #003366;
    margin: 0 0 20px;
    line-height: 1.3;
}

.zpick__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.zpick__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    min-height: 80px;
    padding: 14px 20px;
    background: #f7f3e8;
    border: 2px solid #e8e0c8;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.zpick__btn:first-child { font-size: 28px; }
.zpick__btn span { font-size: 14px; font-weight: 700; }

.zpick__btn:hover {
    border-color: #c4b83b;
    background: #fdf9ec;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(196, 184, 59, 0.25);
}

.zpick__btn--selected,
.zpick__btn--selected:hover {
    background: #c4b83b;
    border-color: #c4b83b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(196, 184, 59, 0.4);
}

.zpick__btn--both {
    min-width: 140px;
}

/* Result state */
.zpick__result {
    animation: zpick-fadein 0.35s ease;
}

@keyframes zpick-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.zpick__result-line {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 20px;
    font-weight: 600;
}

.zpick__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.zpick__cta {
    display: inline-block;
    background: #D4AF37;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s;
    min-height: 50px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.zpick__cta:hover {
    background: #B8962E;
    color: #fff;
    transform: translateY(-2px);
}

.zpick__change {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px;
    min-height: 44px;
}

.zpick__change:hover { color: #555; }

/* =============================================================================
   SIGNUP FORM  [zoomie_signup]
   ============================================================================= */

.z-signup-card {
    width :100%;
	margin: 40px auto;
    background: #fff;
    padding: 40px 36px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

.z-signup-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 8px;
    color: #003366;
    line-height: 1.2;
}

.z-signup-subhead {
    font-size: 14px;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Pet preference step */
.z-pet-step {
    margin-bottom: 24px;
    text-align: left;
}

.z-pet-step__label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin: 0 0 10px;
}

.z-pet-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.z-pet-btn {
    flex: 1;
    min-width: 90px;
    min-height: 52px;      /* 52px — well above 48px minimum */
    padding: 12px 16px;
    background: #f7f3e8;
    border: 2px solid #e8e0c8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.z-pet-btn:hover {
    border-color: #c4b83b;
    color : #c4b83b;
    background: #fdf9ec;
}

.z-pet-btn--active,
.z-pet-btn--active:hover {
    background: #c4b83b;
    border-color: #c4b83b;
    color: #fff;
}
.z-pet-btn.z-pet-btn--active {
    background: #c4b83b !important;
    border-color: #c4b83b !important;
    color: #fff !important;
}
.z-pet-step__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    background: #f7f3e8;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid #c4b83b;
    text-align: left;
}

/* Name + Email step */
.z-group {
    text-align: left;
    margin-bottom: 18px;
}

.z-group label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    color: #888;
}

/* First name / Last name side-by-side */
.z-name-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.z-name-row input {
    flex: 1;
    min-width: 0;   /* allows flex items to shrink below intrinsic width */
}

.z-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;   /* 16px minimum — prevents iOS auto-zoom */
    box-sizing: border-box;
    background: #fdfdfd;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.z-group input:focus {
    outline: none;
    border-color: #c4b83b;
    background: #fff;
}

@media (max-width: 420px) {
    .z-name-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Submit button */
.z-submit-btn {
    width: 100%;
    background: #D4AF37;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s, transform 0.15s;
    min-height: 54px;
    margin-top: 4px;
}

.z-submit-btn:hover:not(:disabled) {
    background: #B8962E;
    transform: translateY(-1px);
}

.z-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success states */
.z-signup-success {
    padding: 32px 20px;
    text-align: center;
}

.z-signup-success__icon {
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
}

.z-signup-success strong {
    display: block;
    font-size: 20px;
    color: #003366;
    margin-bottom: 8px;
}

.z-signup-success p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Legal disclaimer */
.z-disclaimer {
    font-size: 10px;
    color: #aaa;
    margin-top: 16px;
    text-align: left;
    line-height: 1.5;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.z-disclaimer a {
    color: #aaa;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .z-signup-card {
        padding: 28px 20px;
        margin: 20px auto;
    }

    .z-pet-btn {
        font-size: 14px;
        padding: 12px 10px;
    }
}

/* =============================================================================
   ZOOMIE LIST  [zoomie_list]
   ============================================================================= */

.zs-list {
    max-width: 800px;
    margin: auto;
}

.zs-list__heading {
    margin-bottom: 15px;
    font-size: 20px;
    color: #003366;
}

.zs-list__item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #c4b83b;
    transition: box-shadow 0.2s;
}

.zs-list__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.zs-list__title {
    margin: 0 0 8px;
}

.zs-list__title a {
    text-decoration: none;
    color: #003366;
    font-weight: 700;
    font-size: 15px;
}

.zs-list__title a:hover { text-decoration: underline; }

.zs-list__excerpt {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.55;
}

/* =============================================================================
   ALL ZOOMIES  [all_zoomies]  (legacy)
   ============================================================================= */

.zs-all { max-width: 850px; margin: auto; }
.zs-all__title a { text-decoration: none; color: #0073aa; }
.zs-all__excerpt { color: #555; margin-bottom: 10px; }
.zs-all__divider { border: none; border-top: 1px solid #ddd; }

/* =============================================================================
   SUBSCRIPTION POPUP
   ============================================================================= */

#z-hover-popup {
    display: none;
    position: fixed;
    width: 95%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 28px 24px 20px;
    z-index: 999999;
    border: 2px solid #D4AF37;
    left: 50%;
    transform: translateX(-50%);
    top: 90px;
    box-sizing: border-box;
}

#z-hover-popup h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #003366;
    font-weight: 900;
    text-align: center;
    padding-right: 24px; /* space for close button */
}

.z-pop-subhead {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.4;
}

.z-pop-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 4px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.z-pop-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Compact pet buttons inside popup */
.z-pop-pets {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.z-pop-pet-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 8px;
    background: #f7f3e8;
    border: 2px solid #e8e0c8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.z-pop-pet-btn:hover { border-color: #c4b83b; background: #fdf9ec; }

.z-pop-pet-btn--active {
    background: #c4b83b;
    border-color: #c4b83b;
    color: #fff;
}

/* Email row */
.z-pop-input-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #D4AF37;
    border-radius: 10px;
    overflow: hidden;
}

.z-pop-input {
    flex: 1;
    padding: 13px 100px 13px 14px;
    border: none;
    font-size: 16px;  /* 16px — prevents iOS auto-zoom */
    outline: none;
    background: transparent;
    box-sizing: border-box;
    min-height: 50px;
}

.z-pop-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: #D4AF37;
    color: #fff;
    font-weight: 800;
    padding: 0 16px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.z-pop-submit:hover { background: #B8962E; }

#z-pop-msg {
    display: none;
    color: #28a745;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    padding: 16px 0;
}

.z-pop-success { color: #28a745; }

.z-pop-legal {
    font-size: 9px;
    color: #bbb;
    line-height: 1.4;
    text-align: left;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin: 10px 0 6px;
}

.z-pop-legal a { color: #bbb; text-decoration: underline; }

.z-pop-footer-link { text-align: center; }

.z-pop-more-link {
    color: #c4b83b;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
}

@media (max-width: 480px) {
    #z-hover-popup {
        top: 40px;
        padding: 22px 16px 16px;
    }

    .z-pop-input { padding-right: 88px; }
    .z-pop-submit { padding: 0 12px; font-size: 11px; }
}


/* =============================================================================
   BACKGROUND (REQUIRED FOR GLASS EFFECT)
   ============================================================================= */

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* Center wrapper */
.z-glass-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =============================================================================
   SIGNUP CARD — BALANCED GLASS
   ============================================================================= */

.z-signup-card {
    width: 70%;
    margin: auto;

    /* Balanced glass (not too faded) */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 20px;
    padding: 40px 32px;

    border: 1px solid rgba(255, 255, 255, 0.4);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2);

    text-align: center;
    color: #1a2a3a;
}

/* =============================================================================
   TITLE
   ============================================================================= */

.z-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #1a2a3a;
}

/* =============================================================================
   PET BUTTONS
   ============================================================================= */

.z-pet-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.z-pet-btn {
    flex: 1;
    padding: 12px;

    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.1);

    border-radius: 12px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.z-pet-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* Active selection */
.z-pet-btn--active {
    background: #D4AF37;
    color: #000;
    border: none;
    box-shadow: 0 4px 12px rgba(212,175,55,0.4);
}

/* =============================================================================
   INPUTS
   ============================================================================= */

#z-ajax-signup {
    display: flex;
    flex-direction: column;
}
.z-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.z-row input {
    flex: 1;
}

/* Email full width */
#z-signup-email {
    width: 100%;
}

/* Make rows flexible */
.z-row {
    display: flex;
    flex-wrap: wrap;   /* 🔥 KEY FIX */
    gap: 12px;
    margin-bottom: 16px;
}

/* First + Last name → half width each */
#z-signup-fname,
#z-signup-lname {
    flex: 1 1 calc(50% - 6px);
}

/* Email → force next line full width */
#z-signup-email {
    flex: 1 1 100%;   /* 🔥 forces new row */
    width: 100%;
}

/* Button full width */
#z-main-submit {
    width: 100%;
}
/* Visible inputs */
.z-row input {
    padding: 14px;
    border-radius: 10px;

    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;

    color: #000;
    font-size: 15px;

    outline: none;
    transition: 0.2s;
}

.z-row input::placeholder {
    color: #666;
}

.z-row input:focus {
    border-color: #D4AF37;
    background: #fff;
}

/* Mobile fix */
@media (max-width: 480px) {
    .z-row {
        flex-direction: column;
    }
}

/* =============================================================================
   SUBMIT BUTTON
   ============================================================================= */

#z-main-submit {
    width: 100%;
    padding: 16px;

    border-radius: 12px;
    border: none;

    font-weight: 900;
    font-size: 15px;

    background: linear-gradient(135deg, #D4AF37, #f5d76e);
    color: #000;

    cursor: pointer;
    transition: all 0.2s ease;

    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

#z-main-submit:hover:not(:disabled) {
    transform: translateY(-2px);
}

#z-main-submit:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* =============================================================================
   SUCCESS MESSAGE
   ============================================================================= */

#z-signup-msg {
    text-align: center;
}

.z-success-content {
    padding: 20px;
}

.z-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.z-success-content h3 {
    margin: 0;
    font-size: 22px;
}

.z-success-content p {
    margin-top: 8px;
    opacity: 0.8;
}

/* =============================================================================
   EXTRA POLISH
   ============================================================================= */

.z-signup-card {
    transition: all 0.25s ease;
}

.z-signup-card:hover {
    transform: translateY(-4px);
}
@media (max-width: 600px) {
    .z-signup-box {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .z-pet-btn {
        font-size: 15px;
        border-radius: 14px;
    }

    input {
        height: 44px;
        font-size: 14px;
    }

    .z-submit-btn {
        font-size: 15px;
        padding: 14px;
        border-radius: 14px;
    }
}
@media (max-width: 600px) {
    .z-signup-card {
        width: 92%;
        padding: 18px 14px;
        border-radius: 16px;
        margin: 20px auto;
    }
}
@media (max-width: 600px) {
    .z-pet-btns {
        flex-direction: column;
        gap: 10px;
    }

    .z-pet-btn {
        width: 100%;
    }
}@media (max-width: 600px) {
    .z-row {
        flex-direction: column;
        gap: 10px;
    }

    .z-row input {
        width: 100%;
    }
}
