.lead-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.lead-modal.open {
    display: block;
}

.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.lead-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: #C8B79C;

    color: #1A1A1A;
    overflow-y: auto;
    padding: 60px 40px 40px;
    box-sizing: border-box;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.lead-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1A1A1A;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.lead-modal-close:hover {
    opacity: 0.6;
}

.lead-modal-close svg {
    width: 22px;
    height: 22px;
    display: block;
}

.lead-modal-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0 0 20px;
    color: #1A1A1A;
}

.lead-modal-subtitle {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0;
    margin: 0 0 30px;
    color: #1A1A1A;
}

.lead-form {
    display: flex;
    flex-direction: column;
}

.lead-field {
    margin-bottom: 20px;
}

.lead-field input,
.lead-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1A1A1A;
    padding: 8px 0;
    font-family: 'Geologica', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #1A1A1A;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
}

.lead-field-textarea textarea {
    border-bottom: none;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
    color: #1A1A1A;
    opacity: 0.85;
}

.lead-field textarea {
    resize: vertical;
    min-height: 60px;
    font-family: 'Geologica', sans-serif;
}

.lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 25px;
    cursor: pointer;
    position: relative;
}

.lead-consent input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lead-consent-box {
    display: block;
    width: 16px;
    height: 16px;
    border: 1px solid #1A1A1A;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    box-sizing: border-box;
}

.lead-consent input:checked + .lead-consent-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #1A1A1A;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lead-consent-text {
    font-family: 'Geologica', sans-serif;
    font-size: 11px;
    line-height: 15px;
    color: #1A1A1A;
}

.lead-consent-text a {
    color: #8B1A1A;
    text-decoration: underline;
}

.lead-submit {
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #1A1A1A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: opacity 0.3s ease;
}

.lead-submit:hover {
    opacity: 0.7;
}

.lead-submit-arrow {
    font-size: 16px;
}

.lead-form-error {
    font-family: 'Geologica', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #8B1A1A;
    margin: 12px 0 0;
    display: none;
}

.lead-form-error.visible {
    display: block;
}

.lead-success {
    display: none;
    padding: 20px 0;
}

.lead-success.visible {
    display: block;
}

.lead-success p {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #1A1A1A;
    margin: 0;
}

.lead-field input:-webkit-autofill,
.lead-field input:-webkit-autofill:hover,
.lead-field input:-webkit-autofill:focus,
.lead-field input:-webkit-autofill:active,
.lead-field textarea:-webkit-autofill,
.lead-field textarea:-webkit-autofill:hover,
.lead-field textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #1A1A1A;
    -webkit-box-shadow: 0 0 0 1000px #BEA582 inset;
    box-shadow: 0 0 0 1000px #BEA582 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #1A1A1A;
}

@media (max-width: 768px) {
    .lead-modal-panel {
        width: 100%;
        padding: 60px 20px 40px;
    }

    .lead-modal-title {
        font-size: 32px;
        line-height: 38px;
    }

    .lead-modal-subtitle {
        font-size: 14px;
        line-height: 21px;
    }
}