/* ==================================================================
   Global Form Styles (forms.css)
   ================================================================== */

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background-color: #f1f5f9; /* cool-gray-100 */
    border-radius: 50px;
    font-weight: 600;
    color: #475569; /* cool-gray-600 */
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0; /* cool-gray-200 */
}

.step-number {
    background-color: #94a3b8; /* cool-gray-400 */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem; /* RTL support */
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, var(--primary-accent, #3b82f6) 0%, var(--primary-dark, #1d4ed8) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.step.active .step-number {
    background-color: white;
    color: var(--primary-accent, #3b82f6);
}

/* --- Service Selection Cards --- */
.service-selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
    flex-wrap: wrap;
}

.service-card {
    width: 280px;
    height: 220px;
    background: var(--card-bg, #ffffff);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-color, #1e293b);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #e2e8f0);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-accent, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-accent, #3b82f6);
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color, #1e293b);
}

/* --- General Form Container --- */
.form-container {
    background: var(--card-bg, #ffffff);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    padding: 2rem 2.5rem;
    border: 1px solid #e2e8f0;
}

.form-container h1 {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

/* --- Form Grid & Groups --- */
.form-grid, .marriage-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem 1.5rem;
}

.form-group-span-2 {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem 1.5rem;
}

.button-group {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* --- Step 2 Details Section --- */
.details-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    margin-bottom: 2rem;
}

.details-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #003366;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

/* --- Collapsible Form --- */
.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
}

.form-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #fdfdff;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding: 0 1.5rem;
}

.form-collapsible.show {
    padding: 1.5rem;
}