/* Webinar Registration Form Styles */

.webinar-form {
    display: grid;
    gap: 20px;
    max-width: 520px;
}

.webinar-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.webinar-form label {
    font-weight: 500;
    color: #0f172a;
    font-size: 15px;
}

.webinar-form label .required {
    color: #ef4444;
}

.webinar-form input[type="text"],
.webinar-form input[type="email"],
.webinar-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.webinar-form input[type="text"]:focus,
.webinar-form input[type="email"]:focus,
.webinar-form textarea:focus {
    outline: none;
    border-color: #1f9ecb;
    box-shadow: 0 0 0 3px rgba(31, 158, 203, 0.15);
}

.webinar-form input::placeholder,
.webinar-form textarea::placeholder {
    color: #94a3b8;
}

.webinar-form textarea {
    resize: vertical;
    min-height: 100px;
}

.webinar-form .field-hint {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Consent checkbox */
.webinar-form .consent-group {
    margin-top: 8px;
}

.webinar-form .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.webinar-form .consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1f9ecb;
}

.webinar-form .consent-label a {
    color: #1f9ecb;
    text-decoration: none;
}

.webinar-form .consent-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.webinar-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1f9ecb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 14px -4px rgba(31, 158, 203, 0.4);
}

.webinar-form .btn:hover:not(:disabled) {
    background: #0b6f93;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px rgba(31, 158, 203, 0.5);
}

.webinar-form .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.webinar-form .btn.loading {
    pointer-events: none;
}

/* Form message */
.webinar-form .form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.webinar-form .form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.webinar-form .form-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Success Modal */
.wr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.wr-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.wr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.wr-modal-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.wr-modal[aria-hidden="false"] .wr-modal-content {
    transform: scale(1);
}

.wr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-modal-close:hover {
    background: #e2e8f0;
}

.wr-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1f9ecb 0%, #0b6f93 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.wr-modal-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.wr-modal-text {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 480px) {
    .webinar-form {
        gap: 16px;
    }

    .webinar-form input[type="text"],
    .webinar-form input[type="email"],
    .webinar-form textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .wr-modal-content {
        padding: 30px 24px;
    }
}
