/**
 * ZippyPaws Wholesale Registration Form Styles
 * 
 * Styles for the wholesale registration form
 */

.wholesale-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wholesale-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wholesale-notice p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.wholesale-notice p:last-child {
    margin-bottom: 0;
}

.wholesale-notice a {
    color: #856404;
    text-decoration: underline;
}

.wholesale-notice a:hover {
    color: #533f03;
}

.wholesale-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.wholesale-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.wholesale-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.wholesale-form {
    margin-top: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.form-row {
    margin-bottom: 15px;
}

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

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

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.address-fields {
    margin-top: 5px;
}

.address-row {
    margin-bottom: 10px;
}

.address-row input[type="text"],
.address-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.address-row-split {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

.address-row-split input[type="text"],
.address-row-split select {
    width: 100%;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.wholesale-submit {
    background-color: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.wholesale-submit.enabled {
    background-color: #28a745;
}

.wholesale-submit.enabled:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.wholesale-submit.disabled,
.wholesale-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.wholesale-submit.disabled:hover,
.wholesale-submit:disabled:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Certificate Upload Styling */
.section-description {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
    font-size: 14px;
    line-height: 1.5;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.file-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0 !important;
}

.file-upload-button:hover {
    background-color: #e9ecef;
    border-color: #0073aa;
    color: #0073aa;
}

.file-upload-button .upload-icon {
    font-size: 18px;
}

.file-selected {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    color: #0c5460;
    font-size: 13px;
}

.file-selected::before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    margin-bottom: 5px;
}

.password-strength-bar {
    height: 6px;
    width: 100%;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative;
}

.password-strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-bar.weak::before {
    width: 33%;
    background-color: #dc3545;
}

.password-strength-bar.medium::before {
    width: 66%;
    background-color: #ffc107;
}

.password-strength-bar.strong::before {
    width: 100%;
    background-color: #28a745;
}

.password-strength-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* Field Validation States */
.form-row input.valid,
.form-row textarea.valid,
.form-row select.valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    padding-right: 35px;
}

.form-row input.error,
.form-row textarea.error,
.form-row select.error {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    padding-right: 35px;
}

.form-row.has-error label {
    color: #dc3545;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.field-error::before {
    content: '⚠ ';
    font-weight: bold;
}

/* Input Focus States */
.form-row input.valid:focus,
.form-row textarea.valid:focus,
.form-row select.valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.form-row input.error:focus,
.form-row textarea.error:focus,
.form-row select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

@media (max-width: 600px) {
    .wholesale-registration-form {
        margin: 10px;
        padding: 15px;
    }
    
    .address-row-split {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}