/* Form Modal Overlay */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.form-modal {
    width: 90%;
    max-width: 600px;
    background-color: #0A0A0A;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Close Button */
.form-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.form-close:hover {
    color: #fff;
}

/* Progress/Icon Top */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red), #cc0000);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    color: #fff;
}

.form-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-family: 'Syne', sans-serif;
    color: #888;
    font-size: 1rem;
}

.highlight {
    color: var(--accent-red);
}

/* 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);
    }
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-family: 'Syne', sans-serif;
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.custom-input {
    width: 100%;
    background-color: #111;
    border: 1px solid #333;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Syne', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.custom-input::placeholder {
    color: #444;
}

/* Selection Cards (Step 2) */
.services-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.selection-card {
    background-color: #161616;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.selection-card:hover {
    background-color: #1a1a1a;
}

.selection-card.selected {
    border-color: var(--accent-red);
    background-color: rgba(255, 77, 77, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.selection-card.selected .card-icon {
    background-color: var(--accent-red);
}

.selection-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.selection-card p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Footer Actions */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
}

.next-btn {
    background: linear-gradient(135deg, var(--accent-red), #cc0000);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.pro-tip {
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 1rem;
    border-radius: 10px;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.pro-tip i {
    color: var(--accent-yellow);
}

@media (max-width: 600px) {
    .form-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .services-selection {
        grid-template-columns: 1fr;
    }
}