/**
 * Wine Business Pro - Supplier Registration Form Styles
 *
 * Professional styling for supplier registration with responsive design
 *
 * @package Wine_Business_Pro
 * @since 2.0.0
 */

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.wbp-registration-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.wbp-registration-container {
    flex: 1;
    min-width: 0;
}

.wbp-registration-sidebar {
    width: 380px;
    flex-shrink: 0;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.wbp-registration-header {
    text-align: center;
    margin-bottom: 50px;
}

.wbp-registration-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #722f37 0%, #8b3a44 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(114, 47, 55, 0.2);
}

.wbp-registration-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #fff;
}

.wbp-registration-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.wbp-registration-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */

.wbp-benefits-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.wbp-benefits-section h3 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 30px;
    color: #1a1a1a;
}

.wbp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.wbp-benefit-item {
    text-align: center;
    padding: 20px;
}

.wbp-benefit-item .dashicons {
    width: 50px;
    height: 50px;
    font-size: 50px;
    color: #722f37;
    margin-bottom: 15px;
}

.wbp-benefit-item h4 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.wbp-benefit-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.wbp-registration-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wbp-form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.wbp-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.wbp-form-section h3 {
    font-size: 22px;
    margin: 0 0 25px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wbp-form-section h3 .dashicons {
    color: #722f37;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.wbp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wbp-form-field {
    flex: 1;
    min-width: 0;
}

.wbp-form-field.wbp-field-full {
    flex: 1 1 100%;
}

.wbp-form-field.wbp-field-half {
    flex: 1 1 calc(50% - 10px);
}

.wbp-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.wbp-form-field label .required {
    color: #dc2626;
    margin-left: 2px;
}

.wbp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
}

.wbp-input:focus {
    outline: none;
    border-color: #722f37;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.wbp-input::placeholder {
    color: #9ca3af;
}

.wbp-input.wbp-field-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.wbp-input.wbp-field-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.wbp-field-note {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
}

/* ==========================================================================
   Checkbox Fields
   ========================================================================== */

.wbp-checkbox-field {
    margin: 20px 0;
}

.wbp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.wbp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.wbp-checkbox-label span {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.wbp-checkbox-label a {
    color: #722f37;
    text-decoration: underline;
    font-weight: 600;
}

.wbp-checkbox-label a:hover {
    color: #8b3a44;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.wbp-form-actions {
    margin: 30px 0 20px;
}

.wbp-submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #722f37 0%, #8b3a44 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.wbp-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 47, 55, 0.3);
}

.wbp-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wbp-submit-button.wbp-loading {
    pointer-events: none;
}

.wbp-button-text,
.wbp-button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wbp-button-text .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Spinner Animation */
.wbp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wbp-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Messages
   ========================================================================== */

.wbp-form-messages {
    margin-bottom: 20px;
}

.wbp-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: wbp-slideDown 0.3s ease;
}

@keyframes wbp-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wbp-message .dashicons {
    flex-shrink: 0;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wbp-message-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.wbp-message-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wbp-message-close:hover {
    opacity: 1;
}

.wbp-message-close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wbp-message-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.wbp-message-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
}

.wbp-message-warning {
    background: #fef7e7;
    color: #d97706;
    border: 1px solid #fbbf24;
}

/* ==========================================================================
   Privacy Notice
   ========================================================================== */

.wbp-privacy-notice {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wbp-privacy-notice .dashicons {
    flex-shrink: 0;
    color: #722f37;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wbp-privacy-notice p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* ==========================================================================
   Sidebar Cards
   ========================================================================== */

.wbp-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wbp-sidebar-card h4 {
    font-size: 20px;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.wbp-sidebar-card > .dashicons {
    display: block;
    width: 50px;
    height: 50px;
    font-size: 50px;
    color: #722f37;
    margin: 0 auto 15px;
    text-align: center;
}

.wbp-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.wbp-steps-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    counter-increment: step-counter;
}

.wbp-steps-list li:last-child {
    margin-bottom: 0;
}

.wbp-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #722f37 0%, #8b3a44 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.wbp-steps-list li strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.wbp-steps-list li p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Help Card */
.wbp-help-card {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.wbp-help-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 20px;
}

.wbp-link-button {
    display: inline-block;
    padding: 12px 24px;
    background: #722f37;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wbp-link-button:hover {
    background: #8b3a44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.2);
}

/* Testimonial Card */
.wbp-testimonial-card {
    background: linear-gradient(135deg, #722f37 0%, #8b3a44 100%);
    color: #fff;
}

.wbp-testimonial-card h4 {
    color: #fff;
}

.wbp-quote-icon {
    font-size: 60px;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 15px;
    opacity: 0.3;
}

.wbp-testimonial-card blockquote {
    margin: 0 0 20px;
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    border: none;
    padding: 0;
}

.wbp-testimonial-card cite {
    display: block;
    font-style: normal;
    text-align: right;
}

.wbp-testimonial-card cite strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.wbp-testimonial-card cite small {
    font-size: 12px;
    opacity: 0.8;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .wbp-registration-wrapper {
        flex-direction: column;
    }

    .wbp-registration-sidebar {
        width: 100%;
    }

    .wbp-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wbp-registration-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    .wbp-registration-header h2 {
        font-size: 28px;
    }

    .wbp-registration-subtitle {
        font-size: 16px;
    }

    .wbp-benefits-section {
        padding: 30px 20px;
    }

    .wbp-registration-form {
        padding: 30px 20px;
    }

    .wbp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .wbp-form-field.wbp-field-half {
        flex: 1 1 100%;
    }

    .wbp-sidebar-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .wbp-registration-icon {
        width: 60px;
        height: 60px;
    }

    .wbp-registration-icon .dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }

    .wbp-registration-header h2 {
        font-size: 24px;
    }

    .wbp-benefits-section h3 {
        font-size: 22px;
    }

    .wbp-form-section h3 {
        font-size: 18px;
    }
}
