/**
 * Klaviyo Subscription Forms Stylesheet
 * Version: 2.3.0
 */

/* Simple Form Styles */
.klaviyo-form-simple-container {
    max-width: 600px;
    margin: 0;
}

.klaviyo-form-simple-container .klaviyo-form-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--klaviyo-text-color, #332869);
    font-family: "urbane", Montserrat;
}

.klaviyo-simple-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.klaviyo-simple-form .klaviyo-email-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    font-family: "urbane", Montserrat;
    border-radius: 30px;
    font-size: 1.2rem;
    outline: none;
    background: var(--klaviyo-input-bg, #ffffff);
    transition: border-color 0.3s;
}

.klaviyo-simple-form .klaviyo-email-input:focus {
    border-color: var(--klaviyo-button-color, #332869);
}

.klaviyo-simple-form .klaviyo-email-input.error {
    border: 2px solid red;
}

.klaviyo-simple-form .klaviyo-subscribe-btn {
    background: var(--klaviyo-button-color, #332869);
    color: white;
    font-family: "urbane", Montserrat;
    padding: 12px 40px;
    border: 2px solid var(--klaviyo-button-border-color, transparent);
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.klaviyo-simple-form .klaviyo-subscribe-btn:hover {
    background: var(--klaviyo-button-hover-color, #EDA721);
}

.klaviyo-simple-form .klaviyo-subscribe-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Full Form Styles */
.klaviyo-form-full-container {
    max-width: 600px;
    margin: 0;
    background: transparent;
    border-radius: 12px;
    padding: 20px;
}

.klaviyo-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.klaviyo-form-left-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.klaviyo-form-right-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100px;
}

.klaviyo-full-form .klaviyo-email-input {
    padding: 10px 50px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: "urbane", Montserrat;
    outline: none;
    background: white;
    box-sizing: border-box;
    box-shadow: none;
    width: 100%;
    transition: border 0.3s ease;
    margin-bottom: 0;
}

.klaviyo-full-form .klaviyo-email-input.error {
    border: 2px solid red;
    box-shadow: none;
}

.klaviyo-full-form .klaviyo-email-input::placeholder {
    color: #999;
}

.klaviyo-full-form .klaviyo-subscribe-btn {
    background: var(--klaviyo-button-color, #332869);
    color: white;
    padding: 10px 50px;
    border: 2px solid var(--klaviyo-button-border-color, transparent);
    border-radius: 30px;
    font-size: 16px;
    font-family: "urbane", Montserrat;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    text-transform: none;
}

.klaviyo-full-form .klaviyo-subscribe-btn:hover {
    background: var(--klaviyo-button-hover-color, #3a3a7a);
}

.klaviyo-full-form .klaviyo-subscribe-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.klaviyo-category-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    margin-top: 0;
}

.klaviyo-category-options.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid red;
}

.klaviyo-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.klaviyo-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    border: 2px solid white;
    border-radius: 50%;
    background: white;
    position: relative;
}

.klaviyo-radio-option input[type="radio"]:checked {
    background: #332869;
    border: 2px solid white;
}

.klaviyo-radio-option label {
    color: var(--klaviyo-text-color, #332869);
    font-family: "urbane", Montserrat;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* Download Form Styles (mirrors simple form) */
.klaviyo-form-download-container {
    max-width: 600px;
    margin: 0;
}

.klaviyo-form-download-container .klaviyo-form-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--klaviyo-text-color, #332869);
    font-family: inherit;
}

.klaviyo-download-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.klaviyo-download-form .klaviyo-email-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    font-family: inherit;
    border-radius: 30px;
    font-size: 1.2rem;
    outline: none;
    background: var(--klaviyo-input-bg, #ffffff);
    transition: border-color 0.3s;
}

.klaviyo-download-form .klaviyo-email-input:focus {
    border-color: var(--klaviyo-button-color, #332869);
}

.klaviyo-download-form .klaviyo-email-input.error {
    border: 2px solid red;
}

.klaviyo-download-form .klaviyo-subscribe-btn {
    background: var(--klaviyo-button-color, #332869);
    color: white;
    font-family: inherit;
    padding: 12px 40px;
    border: 2px solid var(--klaviyo-button-border-color, transparent);
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.klaviyo-download-form .klaviyo-subscribe-btn:hover {
    background: var(--klaviyo-button-hover-color, #EDA721);
}

.klaviyo-download-form .klaviyo-subscribe-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.klaviyo-messages {
    margin-top: 15px;
    text-align: center;
}

.klaviyo-success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
}

.klaviyo-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 8px;
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .klaviyo-simple-form,
    .klaviyo-download-form {
        flex-direction: column;
    }

    .klaviyo-simple-form .klaviyo-subscribe-btn,
    .klaviyo-download-form .klaviyo-subscribe-btn {
        width: 100%;
    }

    .klaviyo-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .klaviyo-form-right-column {
        min-height: auto;
        margin-top: 10px;
    }

    .klaviyo-full-form .klaviyo-subscribe-btn {
        width: 100%;
    }

    .klaviyo-category-options {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
        padding: 8px 10px;
    }

    .klaviyo-category-options.error {
        background-color: rgba(255, 0, 0, 0.1);
        border: 2px solid red;
    }
}
