/**
 * Acheron Daily Questions - Signup Form Styles
 *
 * @package Acheron_Daily_Questions
 */

/* ============================================
   Container / Card
   ============================================ */
.acheron-dq-signup-form {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a2e;
    box-sizing: border-box;
}

.acheron-dq-signup-form *,
.acheron-dq-signup-form *::before,
.acheron-dq-signup-form *::after {
    box-sizing: inherit;
}

/* ============================================
   Header
   ============================================ */
.acheron-dq-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.acheron-dq-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.acheron-dq-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ============================================
   Form Fields
   ============================================ */
.acheron-dq-field {
    margin-bottom: 1.25rem;
}

.acheron-dq-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.acheron-dq-field input[type="text"],
.acheron-dq-field input[type="email"] {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #1a1a2e;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.acheron-dq-field input[type="text"]:focus,
.acheron-dq-field input[type="email"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

/* ============================================
   Category Checkboxes
   ============================================ */
.acheron-dq-categories-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.acheron-dq-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.acheron-dq-category-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.acheron-dq-category-item:hover {
    border-color: #2563eb;
    background: #eef2ff;
}

.acheron-dq-category-item input[type="checkbox"] {
    margin: 0.125rem 0 0;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.acheron-dq-category-item .acheron-dq-category-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.acheron-dq-category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
}

.acheron-dq-category-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

/* ============================================
   Loading Placeholder for Categories
   ============================================ */
.acheron-dq-categories-loading {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ============================================
   Submit Button
   ============================================ */
.acheron-dq-submit {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    line-height: 1.5;
}

.acheron-dq-submit:hover {
    opacity: 0.92;
}

.acheron-dq-submit:active {
    transform: scale(0.98);
}

.acheron-dq-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Messages
   ============================================ */
.acheron-dq-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    display: none;
}

.acheron-dq-message--success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.acheron-dq-message--error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   Footer / Privacy Note
   ============================================ */
.acheron-dq-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .acheron-dq-signup-form {
        margin: 1rem;
        padding: 1.25rem;
    }

    .acheron-dq-categories {
        grid-template-columns: 1fr;
    }

    .acheron-dq-header h3 {
        font-size: 1.2rem;
    }
}
