/**
 * HVAC Trainer Registration Form Enhanced Styles
 * 
 * @version 2.0.0
 */

/* Main Container */
.hvac-registration-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--hvac-spacing-xl) var(--hvac-spacing-md);
    background-color: #f9fafb;
}

/* Form Card */
.hvac-registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--hvac-spacing-xl);
    background-color: white;
    border-radius: var(--hvac-border-radius);
    box-shadow: var(--hvac-shadow-lg);
    border: 1px solid var(--hvac-border);
}

/* Form Header */
.hvac-registration-form-header {
    text-align: center;
    margin-bottom: var(--hvac-spacing-xl);
    padding-bottom: var(--hvac-spacing-md);
    border-bottom: 1px solid var(--hvac-border-light);
}

.hvac-registration-form h2 {
    color: var(--hvac-primary);
    font-size: 1.8rem;
    margin-bottom: var(--hvac-spacing-sm);
    font-weight: 700;
}

.hvac-registration-form-header p {
    color: var(--hvac-text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Sections */
.hvac-registration-form .form-section {
    margin-bottom: var(--hvac-spacing-xl);
    padding-bottom: var(--hvac-spacing-lg);
    border-bottom: 1px solid var(--hvac-border-light);
}

.hvac-registration-form .form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hvac-registration-form .form-section h3 {
    color: var(--hvac-secondary-dark);
    margin-bottom: var(--hvac-spacing-md);
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: var(--hvac-spacing-sm);
    border-bottom: 1px dashed var(--hvac-border-light);
}

/* Form Grid Layout */
.hvac-registration-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--hvac-spacing-md);
}

/* Form Rows */
.hvac-registration-form .form-row {
    margin-bottom: var(--hvac-spacing-md);
}

/* Form Fields */
.hvac-registration-form label {
    display: block;
    margin-bottom: var(--hvac-spacing-sm);
    font-weight: 600;
    color: var(--hvac-text);
    font-size: 0.95rem;
}

.hvac-registration-form label .required {
    color: var(--hvac-error);
    margin-left: var(--hvac-spacing-xs);
}

.hvac-registration-form input[type="text"],
.hvac-registration-form input[type="email"],
.hvac-registration-form input[type="password"],
.hvac-registration-form input[type="url"],
.hvac-registration-form textarea,
.hvac-registration-form select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--hvac-border);
    border-radius: var(--hvac-border-radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.hvac-registration-form input[type="text"]:focus,
.hvac-registration-form input[type="email"]:focus,
.hvac-registration-form input[type="password"]:focus,
.hvac-registration-form input[type="url"]:focus,
.hvac-registration-form textarea:focus,
.hvac-registration-form select:focus {
    border-color: var(--hvac-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--hvac-primary-light);
    background-color: white;
}

.hvac-registration-form textarea {
    min-height: 120px;
    resize: vertical;
}

.hvac-registration-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Field Helper Text */
.hvac-registration-form .field-help {
    margin-top: var(--hvac-spacing-xs);
    font-size: 0.85rem;
    color: var(--hvac-text-light);
}

/* Submit Button Section */
.hvac-registration-form .form-submit {
    margin-top: var(--hvac-spacing-xl);
    text-align: center;
}

.hvac-registration-form input[type="submit"] {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background-color: var(--hvac-primary);
    color: white;
    border: none;
    border-radius: var(--hvac-border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--hvac-shadow);
}

.hvac-registration-form input[type="submit"]:hover {
    background-color: var(--hvac-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--hvac-shadow-lg);
}

.hvac-registration-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Checkbox & Radio Styles */
.hvac-registration-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--hvac-spacing-sm);
    margin-top: var(--hvac-spacing-sm);
}

.hvac-registration-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--hvac-spacing-sm);
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.hvac-registration-form .checkbox-group input[type="checkbox"],
.hvac-registration-form .checkbox-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Error Messages */
.hvac-registration-form .hvac-errors {
    background-color: var(--hvac-error-light);
    border: 1px solid var(--hvac-error);
    border-radius: var(--hvac-border-radius);
    padding: var(--hvac-spacing-md);
    margin-bottom: var(--hvac-spacing-lg);
    color: var(--hvac-error);
}

.hvac-registration-form .hvac-errors .error {
    margin: var(--hvac-spacing-xs) 0;
}

.hvac-registration-form .form-row.has-error input,
.hvac-registration-form .form-row.has-error select,
.hvac-registration-form .form-row.has-error textarea {
    border-color: var(--hvac-error);
}

.hvac-registration-form .form-row.has-error .field-error {
    color: var(--hvac-error);
    font-size: 0.85rem;
    margin-top: var(--hvac-spacing-xs);
}

/* Success Message */
.hvac-registration-form .hvac-success {
    background-color: var(--hvac-success-light);
    border: 1px solid var(--hvac-success);
    border-radius: var(--hvac-border-radius);
    padding: var(--hvac-spacing-md);
    margin-bottom: var(--hvac-spacing-lg);
    color: var(--hvac-success);
}

/* Login Link */
.hvac-login-link {
    margin-top: var(--hvac-spacing-lg);
    text-align: center;
    padding-top: var(--hvac-spacing-md);
    border-top: 1px solid var(--hvac-border-light);
    font-size: 0.95rem;
}

.hvac-login-link a {
    color: var(--hvac-primary);
    font-weight: 600;
    text-decoration: none;
}

.hvac-login-link a:hover {
    text-decoration: underline;
}

/* Progress Indicator for Multi-step Forms */
.hvac-registration-progress {
    margin-bottom: var(--hvac-spacing-xl);
    padding: var(--hvac-spacing-md);
    background-color: var(--hvac-secondary-light);
    border-radius: var(--hvac-border-radius);
    display: flex;
    justify-content: space-between;
    position: relative;
}

.hvac-registration-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--hvac-spacing-md);
    right: var(--hvac-spacing-md);
    height: 2px;
    background-color: var(--hvac-border);
    transform: translateY(-50%);
    z-index: 1;
}

.hvac-registration-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--hvac-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.hvac-registration-step.active {
    background-color: var(--hvac-primary);
    border-color: var(--hvac-primary);
    color: white;
}

.hvac-registration-step.completed {
    background-color: var(--hvac-success);
    border-color: var(--hvac-success);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hvac-registration-form {
        padding: var(--hvac-spacing-lg);
    }
    
    .hvac-registration-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hvac-registration-form h2 {
        font-size: 1.5rem;
    }
    
    .hvac-registration-progress {
        padding: var(--hvac-spacing-sm);
    }
}

@media (max-width: 480px) {
    .hvac-registration-form {
        padding: var(--hvac-spacing-md);
    }
    
    .hvac-registration-form h2 {
        font-size: 1.3rem;
    }
    
    .hvac-registration-form .form-submit input[type="submit"] {
        width: 100%;
    }
}