.ca-intake-form-wrapper {
    background-color: #8B0016; /* Dark red based on image */
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.ca-intake-form-wrapper * {
    box-sizing: border-box;
}

/* Progress Bar */
.ca-progress-container {
    margin-bottom: 20px;
}

.ca-progress-header {
    display: flex;
    justify-content: space-between;
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.ca-progress-bar-bg {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.ca-progress-bar-fill {
    background-color: white;
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Steps */
.ca-step {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    animation: fadeIn 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ca-step.ca-step-active {
    display: block;
}

.ca-step-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0b1c3f; /* Dark blue */
    margin-top: 0;
    margin-bottom: 25px;
}

/* Options Grid */
.ca-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .ca-options-grid {
        grid-template-columns: 1fr;
    }
}

.ca-option-card {
    display: block;
    cursor: pointer;
}

.ca-option-card input[type="radio"] {
    display: none;
}

.ca-option-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #9c0d23;
    color: white;
    font-weight: 600;
    padding: 15px;
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.ca-option-card.ca-option-other span {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.ca-option-card input[type="radio"]:checked + span {
    transform: scale(0.98);
    border-color: #0b1c3f;
    box-shadow: inset 0 0 0 2px #0b1c3f;
}

.ca-option-card:hover span {
    opacity: 0.9;
}

/* Forms */
.ca-form-group {
    margin-bottom: 15px;
}

.ca-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.ca-input:focus {
    border-color: #8B0016;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139,0,22,0.2);
}

.ca-textarea {
    resize: vertical;
}

.ca-checkbox-group {
    margin-bottom: 15px;
    font-size: 14px;
}

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

.ca-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.ca-other-text-container {
    margin-top: 15px;
}

/* Buttons */
.ca-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ca-btn {
    background-color: white;
    color: #8B0016;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ca-btn:hover {
    background-color: #f8f8f8;
}

.ca-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ca-btn-prev {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}
.ca-btn-prev:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Errors */
.ca-error-msg {
    display: none;
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
}

.ca-global-error {
    background-color: white;
    color: #d9534f;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Spinner */
.ca-spinner {
    border: 3px solid rgba(139,0,22,0.3);
    border-radius: 50%;
    border-top: 3px solid #8B0016;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

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

/* Success Screen */
.ca-success-screen {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.ca-success-icon {
    width: 80px;
    height: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.ca-success-message {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}
