/**
 * EDPRO B2B Public Styles
 *
 * @package Lemorange_EDPRO_B2B
 */

/* Registration Form Wrapper */
.edpro-b2b-registration-wrapper {
    max-width: 540px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Registration Header */
.edpro-b2b-registration-header {
    text-align: center;
    padding: 40px 40px 32px;
    background: linear-gradient(135deg, #1376b0 0%, #0d5a8a 100%);
    color: #fff;
}

.edpro-b2b-registration-icon {
    display: none;
}

.edpro-b2b-registration-header h2 {
    font-size: 26px;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.edpro-b2b-registration-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.edpro-b2b-invite-notice {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Form Styles */
.edpro-b2b-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 36px 40px 40px;
}

.edpro-b2b-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edpro-b2b-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.edpro-b2b-form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.edpro-b2b-form-group input[type="text"],
.edpro-b2b-form-group input[type="email"],
.edpro-b2b-form-group input[type="tel"],
.edpro-b2b-form-group input[type="url"],
.edpro-b2b-form-group textarea,
.edpro-b2b-form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #1f2937;
}

.edpro-b2b-form-group input::placeholder,
.edpro-b2b-form-group textarea::placeholder {
    color: #9ca3af;
}

.edpro-b2b-form-group input:hover,
.edpro-b2b-form-group textarea:hover,
.edpro-b2b-form-group select:hover {
    border-color: #d1d5db;
    background: #fff;
}

.edpro-b2b-form-group input:focus,
.edpro-b2b-form-group textarea:focus,
.edpro-b2b-form-group select:focus {
    outline: none;
    border-color: #1376b0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(19, 118, 176, 0.15);
}

.edpro-b2b-form-group input[readonly] {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

.edpro-b2b-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.edpro-b2b-form-group.has-error input,
.edpro-b2b-form-group.has-error textarea,
.edpro-b2b-form-group.has-error select {
    border-color: #ef4444;
    background: #fef2f2;
}

.edpro-b2b-form-group.has-error input:focus,
.edpro-b2b-form-group.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.edpro-b2b-error-text {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
}

.edpro-b2b-help-text {
    color: #6b7280;
    font-size: 13px;
}

/* Buttons */
.edpro-b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.edpro-b2b-btn-primary {
    background: linear-gradient(135deg, #1376b0 0%, #0d5a8a 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(19, 118, 176, 0.4);
}

.edpro-b2b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 118, 176, 0.5);
}

.edpro-b2b-btn-primary:active {
    transform: translateY(0);
}

.edpro-b2b-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.edpro-b2b-btn-secondary:hover {
    background: #e5e7eb;
}

.edpro-b2b-btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    margin-top: 8px;
}

.edpro-b2b-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.edpro-b2b-spinner {
    animation: edpro-spin 1s linear infinite;
}

@keyframes edpro-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages */
.edpro-b2b-message {
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.edpro-b2b-message h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.edpro-b2b-message p {
    margin: 0;
    font-size: 15px;
}

.edpro-b2b-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.edpro-b2b-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.edpro-b2b-message-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.edpro-b2b-message-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.edpro-b2b-form-message {
    text-align: center;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 16px;
    font-weight: 500;
}

.edpro-b2b-form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.edpro-b2b-form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
.edpro-b2b-registration-footer {
    text-align: center;
    padding: 20px 40px 28px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.edpro-b2b-registration-footer p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

.edpro-b2b-registration-footer a {
    color: #1376b0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.edpro-b2b-registration-footer a:hover {
    color: #0d5a8a;
}

/* Responsive */
@media (max-width: 640px) {
    .edpro-b2b-registration-wrapper {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .edpro-b2b-registration-header {
        padding: 32px 24px 28px;
    }

    .edpro-b2b-registration-header h2 {
        font-size: 22px;
    }

    .edpro-b2b-form {
        padding: 28px 24px 32px;
        gap: 20px;
    }

    .edpro-b2b-registration-footer {
        padding: 18px 24px 24px;
    }
}
