/**
 * Registration form block styles — single source of truth.
 *
 * Loaded in both the editor and on the frontend via the block's
 * `style` and `editor_style` handles.
 *
 * @package Webinar_Plugin
 */

.wp-block-webinar-registration .webinar-registration__form {
    /* container for the form; no extra styling needed */
}

.wp-block-webinar-registration .webinar-registration__label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9375rem;
    color: #333;
}

.wp-block-webinar-registration .webinar-registration__input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #8c8f94;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.wp-block-webinar-registration .webinar-registration__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wp-block-webinar-registration .webinar-registration__input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.wp-block-webinar-registration .webinar-registration__checkbox {
    margin-right: 8px;
    accent-color: #2563eb;
}

.wp-block-webinar-registration .webinar-registration__field {
    margin: 0 0 16px;
}

.wp-block-webinar-registration .webinar-registration__field:last-of-type {
    margin-bottom: 0;
}

.wp-block-webinar-registration .webinar-registration__button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.wp-block-webinar-registration .webinar-registration__button:hover {
    background: #1d4ed8;
}

.wp-block-webinar-registration .webinar-registration__button:active {
    transform: scale(0.98);
}

.wp-block-webinar-registration .webinar-registration__button:disabled {
    background: #93a3b8;
    cursor: not-allowed;
}

/* --- Past event state --- */

.wp-block-webinar-registration .webinar-registration__past {
    padding: 24px 16px;
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

.wp-block-webinar-registration .webinar-registration__past-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
}

.wp-block-webinar-registration .webinar-registration__past-text {
    margin: 0;
    font-size: 14px;
}

/* --- Recording embed state --- */

.wp-block-webinar-registration .webinar-registration__recording {
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-block-webinar-registration .webinar-registration__recording-title {
    margin: 0 0 12px;
    font-size: 16px;
}

.wp-block-webinar-registration .webinar-registration__recording-embed {
    max-width: 100%;
}

.wp-block-webinar-registration .webinar-registration__recording-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #666;
}

/* --- Success / Error states --- */

.wp-block-webinar-registration .webinar-registration__success {
    text-align: center;
    padding: 24px;
}

.wp-block-webinar-registration .webinar-registration__success-title {
    color: #16a34a;
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.wp-block-webinar-registration .webinar-registration__success-text {
    color: #4b5563;
    margin: 0;
}

.wp-block-webinar-registration .webinar-registration__error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 5px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}
