/* Franchise Form Modal */
.franchise-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.franchise-modal.is-open {
    display: flex;
}

.franchise-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.franchise-modal__dialog {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-form);
    max-width: 640px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    padding: var(--space-2xl) var(--space-xl) 0;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.franchise-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 1;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.franchise-modal__close:hover {
    background: var(--color-gray-light);
}

.franchise-modal__close svg {
    width: 20px;
    height: 20px;
}

.franchise-modal__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.franchise-modal__headline {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
    color: var(--color-blue);
    margin-bottom: var(--space-sm);
}

.franchise-modal__subheadline {
    font-size: var(--fs-md);
    font-weight: var(--fw-regular);
    color: var(--color-black);
}

.franchise-modal__form-wrap iframe {
    display: block;
    width: 100%;
    min-height: 1200px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .franchise-modal__dialog {
        width: 95%;
        padding: var(--space-xl) var(--space-lg);
    }
}
