.form-step { display: none; }
.form-step.active { display: block; }

button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #005f8d; }

#formResponse {
  margin-top: 15px;
  font-weight: 600;
}

/* Form Container */
#multiStepForm {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Steps Container */
#multiStepForm .form-step {
    display: none;
    flex-direction: column;
    padding: 40px 20px;
}

#multiStepForm .form-step.active {
    display: flex;
}

/* Remove number input spinners */
#multiStepForm input::-webkit-outer-spin-button,
#multiStepForm input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#multiStepForm input[type="number"] {
    -moz-appearance: textfield;
}

/* Labels */
#multiStepForm .form-step label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Input Fields */
#multiStepForm .form-step input[type="text"],
#multiStepForm .form-step input[type="tel"],
#multiStepForm .form-step input[type="email"],
#multiStepForm .form-step input[type="number"],
#multiStepForm .form-step input[type="date"],
#multiStepForm .form-step select,
#multiStepForm .form-step textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* Input Focus States */
#multiStepForm .form-step input:focus,
#multiStepForm .form-step select:focus,
#multiStepForm .form-step textarea:focus {
    outline: none;
    border-color: #164da0;
    box-shadow: 0 0 0 3px rgba(22, 77, 160, 0.1);
}

/* Placeholder Styles */
#multiStepForm .form-step input::placeholder,
#multiStepForm .form-step select::placeholder,
#multiStepForm .form-step textarea::placeholder {
    color: #999;
}

/* Invalid Input States */
#multiStepForm .form-step input.invalid,
#multiStepForm .form-step select.invalid,
#multiStepForm .form-step textarea.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* Valid Input States */
#multiStepForm .form-step input.valid,
#multiStepForm .form-step select.valid {
    border-color: #28a745;
}

/* Date Input */
#multiStepForm input[type="date"] {
    color-scheme: light;
}

/* Radio Buttons Container */
#multiStepForm .form-step .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Radio Button Labels */
#multiStepForm .form-step .radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}

#multiStepForm .form-step .radio-group label:hover {
    border-color: #164da0;
    background: rgba(22, 77, 160, 0.05);
}

#multiStepForm .form-step .radio-group label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #164da0;
}

#multiStepForm .form-step .radio-group label:has(input[type="radio"]:checked) {
    border-color: #164da0;
    background: rgba(22, 77, 160, 0.1);
    font-weight: 600;
}

/* Checkbox Styles */
#multiStepForm .form-step label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-weight: 400;
}

#multiStepForm .form-step label:has(input[type="checkbox"]):hover {
    border-color: #164da0;
    background: rgba(22, 77, 160, 0.05);
}

#multiStepForm .form-step label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #164da0;
    flex-shrink: 0;
    margin-top: 2px;
}

/* File Upload Wrapper */
#multiStepForm .file_wrapper {
    margin: 20px 0;
}

#multiStepForm .file_wrapper .office {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

#multiStepForm .file_wrapper .office > div {
    display: flex;
    flex-direction: column;
}

#multiStepForm .file_wrapper input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: #f9f9f9;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

#multiStepForm .file_wrapper input[type="file"]:hover {
    border-color: #164da0;
    background: rgba(22, 77, 160, 0.05);
}

#multiStepForm .file_wrapper small {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

/* Navigation Buttons */
#multiStepForm .next-btn,
#multiStepForm .prev-btn {
    padding: 15px 30px;
    border: 2px solid #164da0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    margin-top: 20px;
}

#multiStepForm .next-btn {
    background: #164da0;
    color: #fff;
}

#multiStepForm .next-btn:hover {
    background: #0d3a75;
    transform: translateY(-2px);
}

#multiStepForm .prev-btn {
    background: transparent;
    color: #164da0;
}

#multiStepForm .prev-btn:hover {
    background: #164da0;
    color: #fff;
}

/* Button Wrapper */
#multiStepForm .button_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

/* Submit Button */
#multiStepForm #cf7-submit,
#multiStepForm button[type="submit"] {
    background: #164da0;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#multiStepForm #cf7-submit:hover,
#multiStepForm button[type="submit"]:hover {
    background: #0d3a75;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 77, 160, 0.3);
}

#multiStepForm #cf7-submit:disabled,
#multiStepForm button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Focus States */
#multiStepForm input:focus-visible,
#multiStepForm select:focus-visible,
#multiStepForm textarea:focus-visible,
#multiStepForm button:focus-visible {
    outline: 3px solid #164da0;
    outline-offset: 2px;
}

/* Form Response Messages */
#formResponse {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

#formResponse.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formResponse.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #164da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #multiStepForm .file_wrapper .office {
        grid-template-columns: 1fr;
    }
    
    #multiStepForm .form-step .radio-group {
        flex-direction: column;
    }
    
    #multiStepForm .button_wrap {
        flex-direction: column-reverse;
    }
    
    #multiStepForm .button_wrap .prev-btn,
    #multiStepForm .button_wrap button[type="submit"] {
        width: 100%;
    }
    
    #multiStepForm .next-btn,
    #multiStepForm .prev-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #multiStepForm .form-step {
        padding: 20px 10px;
    }
    
    #multiStepForm .form-step input,
    #multiStepForm .form-step select,
    #multiStepForm .form-step textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
}