/**
 * Registration Form Styles
 */

.hex-registration-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.hex-form-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.hex-form-required-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.hex-form-required-note .required {
    color: #d63638;
}

.hex-registration-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
}

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

.hex-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.hex-form-field label .required {
    color: #d63638;
}

.hex-form-field input[type="text"],
.hex-form-field input[type="email"],
.hex-form-field input[type="number"],
.hex-form-field textarea,
.hex-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hex-form-field input:focus,
.hex-form-field textarea:focus,
.hex-form-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.hex-form-field textarea {
    resize: vertical;
}

/* Phone Field */
.hex-phone-field .hex-phone-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hex-phone-field .hex-phone-inputs input {
    flex: 1;
    max-width: 60px;
}

.hex-phone-field .hex-phone-inputs input:last-child {
    max-width: 80px;
}

.hex-phone-field .hex-phone-inputs span {
    color: #666;
}

/* Field Group (City, State, Postal) */
.hex-form-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Product Checkboxes */
.hex-product-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hex-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.hex-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Date Field */
.hex-date-field .hex-date-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hex-date-field .hex-date-inputs input {
    flex: 1;
    max-width: 80px;
}

.hex-date-field .hex-date-inputs span {
    color: #666;
}

.hex-field-note {
    margin: 5px 0 0;
    color: #666;
    font-size: 12px;
}

/* Error Messages */
.hex-field-error {
    display: block;
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}

.hex-field-error:empty {
    display: none;
}

.hex-form-field.has-error input,
.hex-form-field.has-error textarea,
.hex-form-field.has-error select {
    border-color: #d63638;
}

/* Form Messages */
.hex-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.hex-form-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.hex-form-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Submit Button */
.hex-form-submit {
    margin-top: 30px;
}

.hex-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hex-btn-primary {
    background: #2271b1;
    color: #fff;
}

.hex-btn-primary:hover {
    background: #135e96;
}

.hex-btn-primary:active {
    transform: scale(0.98);
}

.hex-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.hex-form-messages {
    margin-top: 20px;
}

.hex-form-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #0ea5e9;
    border-radius: 4px;
    font-weight: 500;
}

.hex-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(3, 105, 161, 0.3);
    border-top-color: #0369a1;
    border-radius: 50%;
    animation: hex-spin 0.6s linear infinite;
}

@keyframes hex-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hex-registration-form-wrapper {
        padding: 10px;
    }

    .hex-registration-form {
        padding: 20px;
    }

    .hex-form-field-group {
        grid-template-columns: 1fr;
    }
}
