/* Site-wide popup styling. Loaded from sg-head.php. Scoped by `.sg-popup-*`
   prefix so it doesn't collide with existing theme classes. */

.sg-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(26, 26, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: sg-popup-fade 0.2s ease-out;
}
@keyframes sg-popup-fade { from { opacity: 0; } to { opacity: 1; } }

.sg-popup-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: #F9F7F2;
    color: #1a1a1a;
    padding: 36px 32px 28px;
    border: 3px solid #1a1a1a;
    box-shadow: 12px 12px 0 #F04E23;
    font-family: inherit;
    animation: sg-popup-pop 0.22s cubic-bezier(0.2, 1, 0.3, 1.2);
}
@keyframes sg-popup-pop { from { transform: translateY(16px) scale(0.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.sg-popup-close {
    position: absolute;
    top: 6px; right: 10px;
    background: none; border: none; padding: 8px;
    font-size: 28px; line-height: 1; cursor: pointer;
    color: #1a1a1a; opacity: 0.55;
    font-family: sans-serif; font-weight: 300;
}
.sg-popup-close:hover { opacity: 1; }

.sg-popup-eyebrow {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #F04E23;
    margin: 0 0 10px;
}
.sg-popup-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 14px;
    color: #1a1a1a;
    text-transform: uppercase;
}
.sg-popup-body {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
    color: #1a1a1a;
}
.sg-popup-cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #F04E23;
    color: #fff;
    border: 2px solid #1a1a1a;
    box-shadow: 4px 4px 0 #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}
.sg-popup-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1a1a1a; }
.sg-popup-cta:active { transform: translate(0, 0); box-shadow: 2px 2px 0 #1a1a1a; }
.sg-popup-cta:disabled { opacity: 0.6; cursor: not-allowed; }

.sg-popup-form { display: flex; flex-direction: column; gap: 10px; }
.sg-popup-form input[type="email"] {
    padding: 12px 14px;
    border: 2px solid #1a1a1a;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    width: 100%;
}
.sg-popup-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px #FFE88A; }
.sg-popup-consent {
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #1a1a1a;
    opacity: 0.85;
}
.sg-popup-consent input { margin-top: 2px; flex-shrink: 0; }
.sg-popup-consent a { color: #F04E23; text-decoration: underline; }
.sg-popup-err { color: #C44B3F; font-size: 13px; margin: 2px 0 0; min-height: 16px; font-weight: 700; }

@media (max-width: 600px) {
    .sg-popup-card { padding: 28px 22px 22px; box-shadow: 6px 6px 0 #F04E23; }
    .sg-popup-title { font-size: 24px; }
}
