.carley-form-wrapper {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}


.carley-form .form-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.carley-form .step-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-success {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

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

.btn-success {
    background-color: #28a745;
    color: white;
}

@media (max-width: 600px) {
    .carley-form-wrapper {
        padding: 1rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-success {
        width: 100%;
    }
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input.invalid,
select.invalid,
textarea.invalid {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
}

input:focus.invalid,
select:focus.invalid,
textarea:focus.invalid {
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}
