.ac-newsletter-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ac-newsletter-form .form-group {
    margin-bottom: 20px;
}

/* Grid layout for radio options */
.radio-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Card styling */
.radio-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0;
}

/* Hide original radio button */
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Card title */
.radio-card .card-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    margin: 0 0 8px 0;
}

/* Card description */
.radio-card .description {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* Selected state */
.radio-card input[type="radio"]:checked + .card-content {
    position: relative;
}

/* Checkmark for selected card */
.radio-card input[type="radio"]:checked + .card-content::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Selected card state */
.radio-card:has(input[type="radio"]:checked) {
    border-color: #007bff;
}

/* Hover state */
.radio-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Other form elements */
.ac-newsletter-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.ac-newsletter-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #0056b3;
}

#subscriberCount {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

#subscriberCount.hidden {
    display: none;
}

/* Hide form fields initially */
.form-fields-container {
    display: none;
}

/* Show form fields when active */
.form-fields-container.active {
    display: block;
    margin-top: 20px;
}

/* Spinner container layout */
.spinner-container {
    display: flex;
    flex-direction: column;  /* Stack items vertically */
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;  /* Space between spinner and text */
}

.spinner-text {
    margin-top: 10px;  /* Additional space above text */
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.warning-message {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

.progress-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #666;
}

.progress-status .spinner {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cancel-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #c82333;
}

.cancel-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Flatpickr customization */
.flatpickr-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.flatpickr-month {
    height:50px !important;
}

.flatpickr-calendar {
    font-family: inherit;
}

.flatpickr-weekdays, span.flatpickr-weekday {
    background: #007bff !important;
}

.flatpickr-weekday {
    color: #fff !important;
    font-weight: 500;
}

.flatpickr-month {
    background: #fff !important;
    padding: 10px 0 !important
}

.flatpickr-current-month {
    padding-top: 0 !important;
}

/* Confirmation message styling */
.schedule-confirmation {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
} 