/* signup-for-enterprise.css */
.field-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    transition: all 0.3s ease;
}

.field-feedback.valid {
    color: #28a745;
}

.field-feedback.invalid {
    color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    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 calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    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 calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.purpose-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.purpose-card:hover {
    transform: translateY(-2px);
}

.purpose-card input:checked+.purpose-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.check-tick {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    color: #667eea;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
}

.purpose-card input:checked+.purpose-inner .check-tick {
    display: block;
}

.purpose-inner {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    text-align: center;
    padding: 5px 40px 8px 10px !important;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.purpose-inner:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.purpose-inner.active,
.purpose-card input:checked+.purpose-inner {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.purpose-inner.active .check-tick,
.purpose-card input:checked+.purpose-inner .check-tick {
    display: flex;
}

#formAlert {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#formAlert ul {
    padding-left: 20px;
}

#formAlert li {
    margin: 5px 0;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.progress-bar {
    transition: width 0.4s ease;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.signup-btn {
    position: relative;
    overflow: hidden;
}

.signup-btn .spinner-border {
    margin-left: 10px;
}

.overflow-checkbox {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.overflow-checkbox::-webkit-scrollbar {
    width: 8px;
}

.overflow-checkbox::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overflow-checkbox::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.overflow-checkbox::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.other-input-section {
    display: none;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

.other-input-section.show {
    display: block;
}

@media (max-width: 768px) {
    .badge {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .badge+small {
        font-size: 11px;
    }

    .purpose-inner {
        font-size: 0.9rem;
    }
}

.input-group .toggle-password {
    background-color: #fff;
    border-left: none;
}

.input-group .form-control.is-valid,
.input-group .form-control.is-invalid {
    background-image: none !important;
}

.form-control[readonly].is-valid {
    background-color: #f0fdf4;
    cursor: not-allowed;
}

.change-email-link {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
}

.pwd-req-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    line-height: 2;
    font-size: 0.875rem;
}

.pwd-req-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
    transition: color 0.2s ease;
}

.pwd-req-list li.met {
    color: #28a745;
}

.pwd-req-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    transition: background 0.2s ease;
}

.pwd-req-icon.met {
    background: #28a745;
}

/* ── Pehle inline the, ab yahan ── */
.signup-progress {
    height: 8px;
}

#formProgress {
    transition: width 0.4s ease;
}

.text-uppercase-input {
    text-transform: uppercase;
}

.toggle-password {
    cursor: pointer;
}

.pwd-req-title {
    font-size: 0.9rem;
}

/* ── Company Logo (edit page jaisa) ── */
.logo-thumb {
    object-fit: cover;
    border: 2px solid #e0e0e0 !important;
    cursor: pointer;
}

.logo-camera-btn {
    width: 28px;
    height: 28px;
    cursor: pointer;
    border: 2px solid #fff;
}

.crop-modal-content {
    border-radius: 16px;
}

#cropStage {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 0 0 2px #6f5bd8;
}

#cropImage {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}