/* ==========================================
   PORTABLE BUSINESS TAB STYLING
   ========================================== */

/* Preference Item Container */
.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #6b2bbb;
}

/* Preference Header (Title & Description) */
.preference-header {
    flex: 1;
    padding-right: 20px;
}

.preference-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
    margin-bottom: 8px;
}

.preference-header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Toggle Switch Styling */
.preference-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border: none;
    border-radius: 34px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    outline: none;
}

.toggle-switch:checked {
    background-color: #4caf50;
}

.toggle-switch:before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.toggle-switch:checked:before {
    left: 24px;
}

.toggle-label {
    margin-left: 10px;
    cursor: pointer;
}

/* Preference Input Field */
.preference-input {
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
}

.preference-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.preference-input input:focus {
    outline: none;
    border-color: #6b2bbb;
    box-shadow: 0 0 0 3px rgba(107, 43, 187, 0.1);
}

/* Visibility Notice */
.visibility-notice {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

/* Submit Button */
.about-user-form .prple-btn {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .preference-header {
        padding-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .preference-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .preference-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .preference-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .preference-header h5 {
        font-size: 14px;
    }

    .preference-header p {
        font-size: 12px;
    }

    .toggle-switch {
        width: 45px;
        height: 26px;
    }

    .toggle-switch:before {
        width: 22px;
        height: 22px;
    }

    .toggle-switch:checked:before {
        left: 21px;
    }
}
