/* Multi-step form styling with modern design */
:root {
    --primary-color: #945547;
    --secondary-color: #E6CBC1;
    --primary-light: #b67a6a;
    --secondary-light: #f0e0db;
    --text-dark: #212121;
    --text-light: #6e6e6e;
    --border-color: #a8a8a8;
    --success-color: #28a745;
    --error-color: #dc3545;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(148, 85, 71, 0.1);
    --shadow-hover: 0 4px 20px rgba(148, 85, 71, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Multi-step form container */
.form-step { 
    display: none; 
    background: var(--white); 
    padding: 40px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow);
    margin-bottom: 30px; 
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.form-step:hover {
    box-shadow: var(--shadow-hover);
}

.form-step[data-step="0"] { 
    display: block; 
}

/* Step headers */
.form-step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}

.form-step h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Navigation buttons */
.form-navigation { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 40px; 
    gap: 20px;
}

.form-navigation .button { 
    padding: 12px 30px; 
    border-radius: var(--border-radius); 
    border: none; 
    font-weight: 600;
    cursor: pointer; 
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    min-width: 120px;
}

.form-navigation .button:not(.button-primary) {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.form-navigation .button:not(.button-primary):hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.form-navigation .button.button-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.form-navigation .button.button-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-navigation .button:disabled { 
    background: #ccc; 
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Review summary styling */
.review-summary { 
    background: var(--gray-light); 
    padding: 30px; 
    border-radius: var(--border-radius); 
    margin-bottom: 30px; 
    border: 1px solid var(--secondary-color);
}

.review-summary .review-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--secondary-color);
}

.review-summary .review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-summary .review-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    position: relative;
}

.review-summary .review-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.review-summary .review-section div {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 85, 71, 0.1);
    display: flex;
    align-items: center;
}

.review-summary .review-section div:last-child {
    border-bottom: none;
}

.review-summary .review-section strong {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 180px;
    display: inline-block;
    margin-right: 15px;
}

/* Form field styling */
.form-field-wrapper {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(148, 85, 71, 0.1);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Error states */
input.is-invalid, 
select.is-invalid, 
textarea.is-invalid { 
    border-color: var(--error-color); 
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.text-danger { 
    color: var(--error-color); 
    font-size: 0.85rem; 
    margin-top: 5px;
    display: block;
}

/* Checkbox and radio styling */
.form-field-wrapper input[type="checkbox"],
.form-field-wrapper input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.form-field-wrapper label {
    display: inline-block;
    margin-right: 25px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px 0;
}

/* Submit button */
#registration-submit {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

#registration-submit:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#registration-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-border {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Success and error messages */
.response-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 4px solid;
}

#registration-success {
    border-left-color: var(--success-color);
}

#registration-error {
    border-left-color: var(--error-color);
}

.response-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    gap: 18px;
    padding-top: 10px;
}

.step-indicator .step {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(148,85,71,0.07);
    position: relative;
}

.step-indicator .step.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.08);
    z-index: 2;
}

.step-indicator .step.completed {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
}

.step-indicator .step:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    right: -28px;
    top: 50%;
    width: 32px;
    height: 3px;
    background: var(--secondary-color);
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator .step.completed:not(:last-child)::after {
    background: var(--success-color);
}

/* Row and column layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.col-md-6, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .form-step {
        padding: 18px 6px;
        margin-bottom: 16px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation .button {
        width: 100%;
        justify-content: center;
    }
    
    .review-summary {
        padding: 20px;
    }
    
    .review-summary .review-section strong {
        min-width: 120px;
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .review-summary .review-section div {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-indicator {
        gap: 8px;
    }
    
    .step-indicator .step {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
    
    .form-step h3 {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }
}

/* Accessibility improvements */
.form-control:focus-visible,
.form-select:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .form-navigation,
    .step-indicator {
        display: none;
    }
    
    .form-step {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
} 
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding-top: 10px;
    position: relative;
}

.step-indicator .step {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    margin: 0 0.5rem;
}

.step-indicator .step.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.step-indicator .step-connector {
    flex: 1 1 32px;
    height: 3px;
    background: var(--secondary-color);
    min-width: 32px;
    max-width: 32px;
    z-index: 1;
    margin-left: -8px;
    margin-right: -8px;
}

/* Remove old ::after connector rule if present */
.step-indicator .step:not(:last-child)::after { display: none !important; } 