:root {
    --wp-brand: #6571ff;
    --wp-brand-dark: #4f5bd5;
    --wp-text: #2c3e50;
    --wp-muted: #6c757d;
    --wp-bg: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body.public-page {
    background-color: var(--wp-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.public-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.public-container--narrow {
    max-width: 600px;
}

.public-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

.public-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.public-header--center {
    text-align: center;
}

.public-header h1 {
    color: var(--wp-text);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.public-header h1.text-danger {
    color: #dc3545;
}

.public-content h4 {
    color: #34495e;
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.public-content h5 {
    color: #34495e;
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
}

.public-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.public-content ul,
.public-content ol {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 25px;
}

.public-content li {
    margin-bottom: 8px;
}

.last-updated {
    color: var(--wp-muted);
    font-size: 14px;
}

.alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-info h5 {
    color: #1976d2;
    margin-bottom: 10px;
    margin-top: 0;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.alert-warning h5 {
    color: #856404;
    margin-bottom: 10px;
    margin-top: 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--wp-brand);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--wp-brand-dark);
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

/* Support page */
body.support-page {
    background: #eef0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

body.support-page input,
body.support-page textarea,
body.support-page button {
    font-family: inherit;
}

.support-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.brand-icon {
    background: var(--wp-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.brand-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.support-card h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.intro {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--wp-brand);
    box-shadow: 0 0 0 3px rgba(101, 113, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--wp-brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--wp-brand-dark);
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: none;
}

.alert-success.is-visible {
    display: block;
}

.info-box {
    margin-top: 1.25rem;
    background: #f5f7ff;
    border-left: 3px solid var(--wp-brand);
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #444;
}

.info-box a {
    color: var(--wp-brand);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .public-card,
    .support-card {
        padding: 20px;
    }

    .public-header h1,
    .support-card h1 {
        font-size: 24px;
    }
}
