/* FIT WIZARD */
body.fit-form-open {
    overflow: hidden;
}

.fit-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.fit-form-overlay.active {
    display: flex;
}

.fit-form-popup {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fitFormSlideIn 0.3s ease-out;
}

@keyframes fitFormSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.fit-form-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.fit-form-close:hover {
    color: #000;
}


.fit-form-title {
    margin: 0;
    padding: 25px 30px 20px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.fit-form {
    padding: 25px 30px 30px;
}

.fit-form-field {
    margin-bottom: 20px;
}

.fit-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.fit-form-field .required {
    color: #c00;
}

.fit-form-field select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.fit-form-field select:focus {
    outline: none;
    border-color: #AA182C;
    box-shadow: 0 0 0 3px rgba(42, 89, 52, 0.15);
}

.fit-form-field select:hover {
    border-color: #999;
}

.fit-form-actions {
    margin-top: 25px;
}

.fit-form-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #AA182C;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.fit-form-submit:hover {
    background: #8b1223;
}

.fit-form-submit:active {
    background: #8b1223;
}

.fit-form-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.fit-form-submit.loading .btn-text {
    visibility: hidden;
}

.fit-form-submit .spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.fit-form-submit.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.fit-form-message {
    margin-top: 15px;
    padding: 0;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.fit-form-message.success {
    color: #AA182C;
}

.fit-form-message.error {
    color: #c00;
}

@media (max-width: 520px) {
    .fit-form-overlay {
        padding: 10px;
    }

    .fit-form-popup {
        border-radius: 6px;
    }

    .fit-form-title {
        padding: 20px 20px 15px;
        font-size: 20px;
    }

    .fit-form {
        padding: 20px;
    }

    .fit-form-field select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .fit-form-submit {
        padding: 12px 16px;
        font-size: 15px;
    }
}