/* Reset a základní styly */
.kanjoworks-modal-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Styly pro modal */
.kanjoworks-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: kanjoworks-fadeIn 0.35s ease forwards;
    font-family: 'Inter', sans-serif;
}

.kanjoworks-modal-content {
    background-color: white;
    border-radius: 4px;
    position: relative;
    max-width: 780px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 30px;
}

.kanjoworks-modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 6;
    cursor: pointer;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanjoworks-modal-close svg {
    width: 20px;
    height: 20px;
}

.kanjoworks-modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kanjoworks-modal-form-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.kanjoworks-modal-image {
    display: none;
}

.kanjoworks-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.kanjoworks-modal-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--fs-color-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.kanjoworks-modal-subtitle {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #120005;
    margin-bottom: 20px;
}

.kanjoworks-form-input {
    width: 100%;
    padding: 0 16px;
    height: 50px;
    border: 1px solid #7c7457;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.kanjoworks-form-button {
    width: 100%;
    height: 54px;
    background: var(--fs-color-primary);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.kanjoworks-success-message {
    display: none;
    text-align: center;
}

.kanjoworks-success-message h3 {
    color: var(--fs-color-primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.kanjoworks-success-message p {
    margin-bottom: 15px;
    font-size: 16px;
}

.kanjoworks-discount-code {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--fs-color-primary);
    color: white;
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px;
    margin: 10px 0;
}

.kanjoworks-modal-footer {
    text-align: center;
    font-family: 'Inter', sans-serif;
    margin-top: 15px;
}

.kanjoworks-modal-footer strong {
    color: #7c7457;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.kanjoworks-modal-footer small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    display: block;
    line-height: 1.4;
}

/* Animace */
@keyframes kanjoworks-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responzivní design */
@media (min-width: 768px) {
    .kanjoworks-modal-container {
        flex-direction: row;
    }
    
    .kanjoworks-modal-form-content {
        width: 50%;
        padding: 40px 30px;
    }
    
    .kanjoworks-modal-image {
        display: block;
        width: 50%;
    }
    
    .kanjoworks-modal-title {
        font-size: 32px;
    }
}

@media (min-width: 992px) {
    .kanjoworks-modal-title {
        font-size: 44px;
    }
}