/* Dealer Registratie - Clean White Design */

.bpp-form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.bpp-form-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.bpp-form-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bpp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Groups */
.bpp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bpp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Labels */
.bpp-form-group label {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Input Styles */
.bpp-form input,
.bpp-form select,
.bpp-form textarea {
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.bpp-form input:focus,
.bpp-form select:focus,
.bpp-form textarea:focus {
    outline: none;
    border-color: #333;
}

.bpp-form input::placeholder {
    color: #999;
}

/* Form validation states */
.bpp-form-group.has-error input,
.bpp-form-group.has-error select,
.bpp-form-group.has-error textarea {
    border-color: #dc3545;
}

.bpp-form-group.has-success input,
.bpp-form-group.has-success select,
.bpp-form-group.has-success textarea {
    border-color: #28a745;
}

/* Password Field */
.bpp-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.bpp-password-field input {
    flex: 1;
    padding-right: 3rem;
}

.bpp-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #666;
}

.bpp-eye-icon {
    font-size: 1rem;
    display: block;
}

/* Checkbox Group */
.bpp-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.bpp-checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bpp-checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.bpp-link {
    color: #333;
    text-decoration: underline;
}

/* ===================================
   ACCOUNT PAGE STYLES
   =================================== */

/* Account Container */
.bpp-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bpp-account-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.bpp-account-header h2 {
    color: #000;
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.bpp-welcome-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Account Navigation Tabs */
.bpp-account-navigation {
    margin-bottom: 30px;
}

.bpp-account-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.bpp-account-tabs li {
    margin: 0;
}

.bpp-account-tabs a {
    display: block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bpp-account-tabs a:hover {
    color: #000;
    background-color: #f9f9f9;
}

.bpp-account-tabs li.active a {
    color: #000;
    border-bottom-color: #000;
    background-color: #fff;
}

/* Tab Content */
.bpp-account-content {
    background: #fff;
    min-height: 400px;
}

.bpp-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bpp-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bpp-tab-content h3 {
    color: #000;
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.bpp-tab-content h4 {
    color: #000;
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 15px 0;
}

/* Notices */
.bpp-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.bpp-notice-error {
    background-color: #ffe6e6;
    border-left: 4px solid #ff0000;
    color: #cc0000;
}

.bpp-notice-info {
    background-color: #e6f3ff;
    border-left: 4px solid #0073aa;
    color: #0073aa;
}

.bpp-notice-success {
    background-color: #e6ffe6;
    border-left: 4px solid #00cc00;
    color: #009900;
}

/* Orders Table */
.bpp-orders-table {
    margin: 20px 0;
    overflow-x: auto;
}

.bpp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.bpp-table th,
.bpp-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.bpp-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #e0e0e0;
}

.bpp-table tr:hover {
    background-color: #f9f9f9;
}

.bpp-order-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.bpp-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.bpp-status-processing {
    background-color: #d4edda;
    color: #155724;
}

.bpp-status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.bpp-status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Addresses Container */
.bpp-addresses-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.bpp-address-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Account Details Container */
.bpp-account-details-container {
    max-width: 600px;
}

.bpp-password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Form Styling for Account Pages */
.bpp-address-form,
.bpp-account-form,
.bpp-password-form {
    margin: 20px 0;
}

.bpp-address-form .bpp-form-group,
.bpp-account-form .bpp-form-group,
.bpp-password-form .bpp-form-group {
    margin-bottom: 20px;
}

.bpp-address-form .bpp-form-row,
.bpp-account-form .bpp-form-row,
.bpp-password-form .bpp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.bpp-address-form label,
.bpp-account-form label,
.bpp-password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #000;
    font-size: 14px;
}

.bpp-address-form input,
.bpp-account-form input,
.bpp-password-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bpp-address-form input:focus,
.bpp-account-form input:focus,
.bpp-password-form input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

/* Button Styles */
.bpp-button {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.bpp-button:hover {
    background-color: #333;
    color: #fff;
}

.bpp-button-small {
    padding: 8px 16px;
    font-size: 12px;
}

.bpp-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.bpp-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Messages for Account Pages */
#bpp-account-messages {
    margin: 20px 0;
}

#bpp-account-messages .bpp-notice {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpp-account-tabs {
        flex-direction: column;
    }
    
    .bpp-account-tabs a {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }
    
    .bpp-account-tabs li.active a {
        border-bottom-color: #e0e0e0;
        border-left: 3px solid #000;
    }
    
    .bpp-addresses-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bpp-address-form .bpp-form-row,
    .bpp-account-form .bpp-form-row,
    .bpp-password-form .bpp-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .bpp-table {
        font-size: 12px;
    }
    
    .bpp-table th,
    .bpp-table td {
        padding: 8px 10px;
    }
}

.bpp-link:hover {
    color: #000;
}

/* Submit Button */
.bpp-submit-group {
    margin-top: 1rem;
}

.bpp-submit-btn {
    background: #333;
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.bpp-submit-btn:hover:not(:disabled) {
    background: #222;
}

.bpp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Login Link */
.bpp-login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Messages */
.bpp-message {
    padding: 0.875rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.bpp-message.success {
    background: #f0f8f0;
    color: #2d5a2d;
    border-color: #a8d4a8;
}

.bpp-message.error {
    background: #fdf2f2;
    color: #b91c1c;
    border-color: #f5c6cb;
}

/* Loading Animation */
.bpp-submit-btn:disabled::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: bpp-spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .bpp-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .bpp-form-title {
        font-size: 1.25rem;
    }
    
    .bpp-form-row {
        grid-template-columns: 1fr;
    }
    
}

/* Accessibility */
.bpp-form input:focus-visible,
.bpp-form select:focus-visible,
.bpp-form textarea:focus-visible,
.bpp-submit-btn:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bpp-submit-btn,
    .bpp-login-link,
    .bpp-message {
        display: none;
    }
    
    .bpp-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}