/* New Customer Sign Up Form Styles */

/* Side Notification Banner */
.new-customer-notification {
    position: fixed;
    top: 100px; /* Just under nav bar */
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideInRight 0.4s ease-out;
}

.new-customer-notification.show {
    display: flex;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.new-customer-notification .notification-content {
    flex: 1;
}

.new-customer-notification .notification-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.new-customer-notification .notification-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.new-customer-notification .btn-fill-form {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.new-customer-notification .btn-fill-form:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.new-customer-notification .btn-close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.new-customer-notification .btn-close-notification:hover {
    opacity: 1;
}

/* New Customer Form Modal Overlay */
.new-customer-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.new-customer-form-overlay.show {
    display: flex;
}

/* New Customer Form Modal */
.new-customer-form-modal {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.new-customer-form-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.new-customer-form-modal .modal-close:hover {
    color: var(--text-color);
}

.new-customer-form-modal h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.new-customer-form-modal > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.new-customer-form-modal .form-section-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-surface-3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-customer-form-modal .form-section-title i {
    font-size: 0.9rem;
}

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

.new-customer-form-modal .form-group {
    margin-bottom: 1rem;
}

.new-customer-form-modal .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.new-customer-form-modal .form-label .required {
    color: var(--error);
}

.new-customer-form-modal .input-with-icon {
    position: relative;
}

.new-customer-form-modal .input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.new-customer-form-modal .input-with-icon input,
.new-customer-form-modal .input-with-icon select,
.new-customer-form-modal .input-with-icon textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.new-customer-form-modal .input-with-icon input:focus,
.new-customer-form-modal .input-with-icon select:focus,
.new-customer-form-modal .input-with-icon textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 38, 27, 0.1);
}

.new-customer-form-modal textarea {
    min-height: 80px;
    resize: vertical;
}

.new-customer-form-modal .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.new-customer-form-modal .btn-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.new-customer-form-modal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 38, 27, 0.3);
}

.new-customer-form-modal .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.new-customer-form-modal .btn-cancel {
    padding: 0.875rem 1.5rem;
    background: var(--light-surface-2);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.new-customer-form-modal .btn-cancel:hover {
    background: var(--light-surface-3);
}

/* Success state */
.new-customer-form-modal .form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.new-customer-form-modal .form-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.new-customer-form-modal .form-success .success-icon i {
    font-size: 40px;
    color: white;
}

.new-customer-form-modal .form-success h3 {
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.new-customer-form-modal .form-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.new-customer-form-modal .btn-close-success {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.new-customer-form-modal .btn-close-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 38, 27, 0.3);
}

/* Error/Info messages */
.new-customer-form-modal .form-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.new-customer-form-modal .form-message.error {
    background: #fee;
    color: #c00;
    display: block;
}

.new-customer-form-modal .form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

/* Spinner */
.new-customer-form-modal .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 0.5rem;
}

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

/* Manage Account - Company Info Tab */
.company-info-section .form-section {
    margin-bottom: 2rem;
}

.company-info-section .form-section-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-surface-3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-info-completed {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.company-info-completed i {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.company-info-completed h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.company-info-completed p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .new-customer-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        flex-direction: column;
        text-align: center;
    }

    .new-customer-notification .notification-icon {
        display: none;
    }

    .new-customer-form-modal .form-row {
        grid-template-columns: 1fr;
    }

    .new-customer-form-modal .form-actions {
        flex-direction: column;
    }
}
