:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
}

.form-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.step-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-header h3 {
    margin: 0;
    font-weight: bold;
}

.step-number {
    background-color: white;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(76, 201, 240, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.phone-input-group {
    display: flex;
}

.phone-input-group .form-control:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.phone-input-group .form-select {
    max-width: 110px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.extension-input {
    max-width: 100px;
    margin-right: 10px;
}

.form-section {
    display: none;
}

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

.progress-container {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-circle.active {
    background-color: var(--primary-color);
    color: white;
}

.step-circle.completed {
    background-color: #28a745;
    color: white;
}

.step-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 0.5rem;
    align-self: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card {
    background-color: #e7f5ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #0275d8;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox .form-check-label {
    font-weight: 500;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .step-text {
        font-size: 0.7rem;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* RTL (Right-to-Left) specific adjustments */
[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .phone-input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

[dir="rtl"] .phone-input-group .form-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

[dir="rtl"] .extension-input {
    margin-left: 10px;
    margin-right: 0;
}
