:root {
    --brief-primary: #6366f1;
    /* Indigo-500 */
    --brief-secondary: #a855f7;
    /* Purple-500 */
    --brief-bg: #f8fafc;
    --brief-glass: rgba(255, 255, 255, 0.9);
    --brief-border: rgba(255, 255, 255, 0.2);
    --brief-text: #1e293b;
    --brief-text-light: #64748b;
    --brief-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brief-modern-ui {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 20px auto 40px;
    /* Adjusted margin for admin context */
    background: var(--brief-glass);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--brief-text);
}

/* Make sure inputs don't look weird in WP Admin */
.brief-modern-ui input[type=text],
.brief-modern-ui input[type=email],
.brief-modern-ui input[type=tel],
.brief-modern-ui input[type=url],
.brief-modern-ui input[type=date],
.brief-modern-ui textarea,
.brief-modern-ui select {
    box-sizing: border-box;
    /* WP Admin default is different */
}

/* Progress Bar */
.brief-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.brief-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    background: white;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brief-text-light);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: var(--brief-primary);
    color: var(--brief-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Form Sections */
.brief-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.brief-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brief-text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--brief-primary), var(--brief-secondary));
    -webkit-background-clip: text;
    /* Standard property for compatibility */
    background-clip: text;
    color: transparent;
    /* Fallback for non-webkit browsers */
    -webkit-text-fill-color: transparent;
    padding-bottom: 5px;
    /* Prevent text cut-off */
    line-height: 1.3;
}

.section-desc {
    color: var(--brief-text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--brief-text);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brief-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Package Cards */
.package-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.package-option input {
    display: none;
}

.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.package-option input:checked+.package-card {
    border-color: var(--brief-primary);
    background: #eff6ff;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
}

.package-letter {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brief-primary);
    background: #e0e7ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.package-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.package-desc {
    font-size: 0.875rem;
    color: var(--brief-text-light);
}

/* Buttons */
/* Buttons - High Specificity to override Theme defaults */
.brief-modern-ui .nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 15px;
}

.brief-modern-ui button {
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-size: 1rem !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    background: none !important;
    /* Reset potential theme backgrounds */
    border: none !important;
}

/* Force specific styles for Next/Submit */
body .brief-modern-ui .btn-next,
body .brief-modern-ui .btn-submit,
.brief-modern-ui button.btn-next,
.brief-modern-ui button.btn-submit {
    background: linear-gradient(135deg, var(--brief-primary), var(--brief-secondary)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3) !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

body .brief-modern-ui .btn-next:hover,
body .brief-modern-ui .btn-submit:hover,
.brief-modern-ui button.btn-next:hover,
.brief-modern-ui button.btn-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4) !important;
    background: linear-gradient(135deg, var(--brief-secondary), var(--brief-primary)) !important;
    color: white !important;
}

/* Force specific styles for Prev */
body .brief-modern-ui .btn-prev,
.brief-modern-ui button.btn-prev {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--brief-text-light) !important;
    box-shadow: none !important;
}

body .brief-modern-ui .btn-prev:hover,
.brief-modern-ui button.btn-prev:hover {
    background: #f1f5f9 !important;
    color: var(--brief-text) !important;
    border-color: #94a3b8 !important;
}

/* Utilities */
.hidden {
    display: none;
}

.radio-group,
.radio-group-vertical {
    display: flex;
    gap: 1rem;
}

.radio-group-vertical {
    flex-direction: column;
    gap: 0.5rem;
}

/* Disclaimers Box */
.disclaimers-box {
    background: #fffbeb;
    /* Amber-50 */
    border: 1px solid #fcd34d;
    /* Amber-300 */
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #92400e;
    /* Amber-800 */
    animation: fadeIn 0.3s ease;
}

.disclaimers-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #b45309;
    /* Amber-700 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimers-box h3::before {
    content: '⚠️';
}

.disclaimer-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(180, 83, 9, 0.1);
}

.disclaimer-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.disclaimer-group h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.disclaimer-group ul {
    margin: 0;
    padding-left: 1.2rem;
}

.disclaimer-group li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}