/* Form Modal */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.form-modal--active {
    opacity: 1;
    visibility: visible;
}

.form-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.form-modal__container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.form-modal--active .form-modal__container {
    transform: translateY(0);
}

.form-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.form-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

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

.form-step--hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step__header {
    text-align: center;
    margin-bottom: 32px;
}

.form-step__number {
    display: inline-block;
    background: linear-gradient(135deg, #13ce66, #10b981);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.form-step__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px;
}

.form-step__subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-field input,
.form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #13ce66;
    box-shadow: 0 0 0 3px rgba(19, 206, 102, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* Checkbox */
.form-field--checkbox {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #13ce66;
    border-color: #13ce66;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label input:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(19, 206, 102, 0.2);
}

.checkbox-text a {
    color: #13ce66;
    text-decoration: underline;
}

/* Buttons */
.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-btn--primary {
    background: #13ce66;
    color: #ffffff;
}

.form-btn--primary:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(19, 206, 102, 0.2);
}

.form-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.form-btn--secondary:hover {
    background: #e5e7eb;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-actions .form-btn--secondary {
    flex: 0 0 auto;
}

.form-actions .form-btn--primary {
    flex: 1;
}

/* Success State */
.form-success {
    text-align: center;
    padding: 20px 0;
}

.form-success__icon {
    margin-bottom: 24px;
}

.form-success__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 12px;
}

.form-success__text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .form-modal__container {
        padding: 24px;
        width: 95%;
        max-height: 95vh;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-step__title {
        font-size: 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .form-btn {
        width: 100%;
    }
}

/* Scrollbar styling for modal */
.form-modal__container::-webkit-scrollbar {
    width: 6px;
}

.form-modal__container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.form-modal__container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.form-modal__container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
