/* Centered lead-capture modal (nutrition guides) */
.guide-lead-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.guide-lead-modal.is-open {
    display: flex;
}

.guide-lead-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.guide-lead-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 1.65rem 1.5rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.guide-lead-close-x {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-lead-close-x:hover {
    background: rgba(196, 30, 58, 0.12);
    color: #c41e3a;
}

.guide-lead-modal-title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.guide-lead-modal-lead {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #64748b;
}

.guide-lead-error {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.guide-lead-field {
    margin-bottom: 0.85rem;
}

.guide-lead-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #1e293b;
}

.guide-lead-field input[type="text"],
.guide-lead-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.guide-lead-field input:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.guide-lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0 0.25rem;
}

.guide-lead-consent input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    accent-color: #c41e3a;
}

.guide-lead-consent label {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
}

.guide-lead-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c41e3a 0%, #9e1830 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.guide-lead-submit:hover:not(:disabled) {
    filter: brightness(1.05);
}

.guide-lead-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.guide-lead-fine {
    font-size: 0.74rem;
    color: #64748b;
    margin: 0.65rem 0 0;
    line-height: 1.45;
}

.guide-lead-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.guide-lead-success {
    text-align: center;
    padding: 0.25rem 0;
}

.guide-lead-success p {
    color: #334155;
    margin: 0 0 1rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.guide-lead-success .guide-lead-download {
    display: inline-block;
    padding: 0.8rem 1.35rem;
    background: linear-gradient(135deg, #c41e3a 0%, #9e1830 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.guide-lead-done {
    margin-top: 0.5rem;
}

.guide-lead-done button {
    background: none;
    border: none;
    color: #c41e3a;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: underline;
}

body.guide-lead-modal-open {
    overflow: hidden;
}
