/* Modern Minimal Form Styles */
.qms-form {
    max-width: 720px;
    margin: 2rem auto;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.qms-form-wrapper {
    width: 100%;
}

.qms-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.qms-field {
    display: flex;
    flex-direction: column;
}

.qms-field.full {
    grid-column: 1 / -1;
}

.qms-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.qms-field input,
.qms-field select,
.qms-field textarea {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

.qms-field input:focus,
.qms-field select:focus,
.qms-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.qms-field textarea {
    resize: vertical;
    min-height: 100px;
}

.qms-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.qms-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.qms-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.qms-actions button:active {
    transform: translateY(0);
}

.qms-status {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.5rem;
}

.qms-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* reCAPTCHA Container */
.g-recaptcha {
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .qms-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .qms-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .qms-actions {
        flex-direction: column;
    }
    
    .qms-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qms-form {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Multi-step Form Styles */
.qms-form-steps {
    position: relative;
    overflow: hidden;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.qms-step {
    min-width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.qms-step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
    flex-wrap: wrap;
}

.step-actions .qms-status {
    width: 100%;
    order: 3;
    text-align: center;
    margin-top: 0.5rem;
}

.qms-btn-next,
.qms-btn-prev,
.qms-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qms-btn-prev {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.qms-btn-next:hover,
.qms-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.qms-btn-prev:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.qms-btn-next:active,
.qms-btn-prev:active,
.qms-btn-submit:active {
    transform: translateY(0);
}

.qms-select {
    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='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
    cursor: pointer;
}

.qms-select:focus {
    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='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Progress indicator */
.qms-form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.qms-form-progress::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.qms-form-progress {
    --progress-width: 50%;
}

.qms-form-progress::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: var(--progress-width);
    transition: width 0.4s ease;
    z-index: 2;
}

.progress-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.active .progress-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.progress-step-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .progress-step-label {
    color: #667eea;
    font-weight: 600;
}

/* Responsive for multi-step */
@media (max-width: 768px) {
    .qms-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .qms-form-progress {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .progress-step-label {
        font-size: 0.75rem;
    }
    
    .step-header {
        flex-direction: row;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .step-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .qms-btn-next,
    .qms-btn-prev,
    .qms-btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animation for step transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qms-step.active {
    animation: slideIn 0.4s ease;
}


