/* Form Page Styles */
body {
    background-color: #f1f5f9;
    min-height: 100vh;
}

.form-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    padding: 20px;
}

.form-container {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    /* Wider container */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 30px 40px;
    /* Reduced vertical padding */
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.back-link {
    position: absolute;
    left: 0;
    top: 5px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.form-logo {
    height: 60px;
    margin: 0 auto 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 16%;
    /* Start at step 1/6 */
    transition: width 0.4s ease;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns instead of 2 */
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.option-card {
    cursor: pointer;
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    /* Reduced padding */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
    height: 100%;
    text-align: center;
    color: var(--text-color);
    position: relative;
    /* For check indicator */
}

/* Check Indicator */
.check-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.option-card input:checked+.option-content .check-indicator {
    opacity: 1;
    transform: scale(1);
}

.option-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #94a3b8;
    transition: var(--transition);
}

.option-content .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Selected State */
.option-card input:checked+.option-content {
    border-color: var(--secondary-color);
    background-color: #fff7ed;
    /* Light orange tint */
}

.option-card input:checked+.option-content i {
    color: var(--secondary-color);
}

.option-card:hover .option-content {
    border-color: #cbd5e1;
}

/* Options List (Vertical) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.option-row {
    cursor: pointer;
    position: relative;
}

.option-row input {
    position: absolute;
    opacity: 0;
}

.option-row span {
    display: block;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.option-row input:checked+span {
    border-color: var(--secondary-color);
    background-color: #fff7ed;
    color: var(--secondary-color);
    font-weight: 600;
}

.option-row:hover span {
    border-color: #cbd5e1;
}

/* Inputs */
.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 0;
    /* Remove bottom margin inside grid */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.next-btn {
    margin-left: auto;
    /* Push to right if alone */
}

.btn-outline {
    border-color: #cbd5e1;
    color: #64748b;
}

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

/* Responsive */
@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .inputs-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }

    .form-header h1 {
        font-size: 1.2rem;
    }
}