/**
 * Frontend Styles
 */

.rae-form-container {
    padding: 40px 20px;
    border-radius: 8px;
    margin: 0 auto;
    position: relative;
}

.rae-subscription-form {
    width: 100%;
}

.rae-form-inner {
    max-width: 800px;
    margin: 0 auto;
}

.rae-form-heading {
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

.rae-form-subheading {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
    line-height: 1.5;
}

.rae-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rae-email-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.rae-email-input:focus {
    outline: none;
    border-color: #0073aa;
}

.rae-submit-button {
    padding: 14px 30px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
}

.rae-submit-button:hover:not(:disabled) {
    background-color: #005a87;
}

.rae-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rae-agreement {
    margin-bottom: 15px;
}

.rae-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.rae-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.rae-checkbox-label {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    font-weight: 400;
}

.rae-message {
    padding: 0px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
}

.rae-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rae-message--centered {
    text-align: center;
    font-size: 20px;
    background: transparent !important;
    border: none !important;
    line-height: 1.6;
}

.rae-message--centered strong {
    font-size: 28px;
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
}

.rae-message--centered span {
    font-weight: 600;
    color: #0073aa;
}

.rae-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rae-loading {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 200px;
}

.rae-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 115, 170, 0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: rae-spin 0.8s linear infinite;
}

@keyframes rae-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .rae-form-group {
        flex-direction: column;
    }

    .rae-email-input,
    .rae-submit-button {
        width: 100%;
    }
}
